- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All
I have this snip of code.
#read in a User Parmeter
UserStoneFinalHeight = userParams.itemByName('StoneFinalHeight')
#Extract the value of the parmeter
offsetValue = adsk.core.ValueInput.createByReal(UserStoneFinalHeight.value)
#create a offer plane user the value from the parameter
planeInput.setByOffset(xyPlane, offsetValue)
planeStone = planes.add(planeInput)
planeStone.name = 'stone'
planeStone.isLightBulbOn = False
Now this works, but the Offset is not linked to the parameter , so if I change the parameter UserStoneFinalHeight the offset does not update.
With Dimensions , I can link a dimension a parameter with
stoneDim.parameter.expression = 'StoneRadius' But I can't figure out how to link the offset to a parameter.
Can anyone help 😉
Cheers, Stephen
Solved! Go to Solution.