Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What is the best way to constrain 50 new points I'm adding for a spline?

0 REPLIES 0
Reply
Message 1 of 1
OceanHydroAU
132 Views, 0 Replies

What is the best way to constrain 50 new points I'm adding for a spline?

I'm currently using this for the "X" (and the same again for the Y):-

rh=d.addDistanceDimension(nose, sp, myHorizontalDimensionOrientation, sp.geometry)
rh.parameter.expression='{} cm'.format(splinex[i]*scale)

except it does not allow negative distances, and each one of those (there's 100 - two for each point) takes 1 second to add (causing almost 2mins delay!)

 

Long story short - all 50 points are "connected" to a user-selected point in their sketch.  if they move that point, all 50 of my new points need to move as well.  In addition, if, later on, they do something dramatic (this is an airfoil, so if they change the chord length, every single point needs to be re-positioned into the new correct shape), I need to loop back in here and change all of those dimensions.

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report