Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

[FIX] FS Beam

emagdalenaC2iemagdalenaC2i Member, Developers, Channel partner Posts: 863 ✭✭✭✭✭
Hi @NeilCooke

There is a small bug in the Beam FeatureScript


To fix it, just replace in the "Beam Feature" tab the line 105:
if (!definition.setCustomName)
to
else
This is the code I use:
<div>if (definition.profileType == ProfileType.CUSTOM)</div><div>{</div><div>	annotation { "Name" : "Override", "UIHint" : "REMEMBER_PREVIOUS_VALUE" }</div><div>	definition.setCustomName is boolean;</div><div>	if (definition.setCustomName)</div><div>	{</div><div>		annotation { "Name" : "Name", "Default" : "Custom Profile", "UIHint" : "REMEMBER_PREVIOUS_VALUE" }</div><div>		definition.customName is string;</div><div>	}</div><div>}</div><div>else</div><div>{</div><div>	annotation { "Name" : "Standard", "Default" : false, "UIHint" : "REMEMBER_PREVIOUS_VALUE" }</div><div>	definition.nameStandard is boolean;</div><div><br></div><div>	annotation { "Name" : "Profile", "Default" : true, "UIHint" : "REMEMBER_PREVIOUS_VALUE" }</div><div>	definition.nameProfile is boolean;</div><div>}</div>

Un saludo,

Eduardo Magdalena                         C2i Change 2 improve                         ☑ ¿Por qué no organizamos una reunión online?  
                                                                     Partner de PTC - Onshape                                     Averigua a quién conocemos en común

Comments

  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,683
    Thanks Eduardo - the standard/profile option is still required for custom profiles. If they have been tagged then this data will be used, if not, the user can override and enter a different name. 

    I used:
    if (definition.profileType == ProfileType.STANDARD || (definition.profileType == ProfileType.CUSTOM && !definition.setCustomName))
    Feature versioned - thanks for finding this.
    Senior Director, Technical Services, EMEAI
  • emagdalenaC2iemagdalenaC2i Member, Developers, Channel partner Posts: 863 ✭✭✭✭✭
    You probably like this vídeo ;-)
    https://www.youtube.com/watch?v=tn3-0H63RfQ
    Un saludo,

    Eduardo Magdalena                         C2i Change 2 improve                         ☑ ¿Por qué no organizamos una reunión online?  
                                                                         Partner de PTC - Onshape                                     Averigua a quién conocemos en común
  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,683
    VERY NICE!!

    Senior Director, Technical Services, EMEAI
Sign In or Register to comment.