I have a light fixture family made up of segments. Each segment uses an Extrusion to connect two lamps from the center. Each extrusion has a length parameter for setting the width of the extrusion. Through the API, I find this value as a parameter on an object called <Sketch> when I edit the extrusion. If the <Sketch> is selected the parameter will be listed as length. This is what sets the width of the cylinder I have between the two lamps.
How to get this value through the API? I can retreive the Start and End offsets from the Extrusion itself, but I cannot get this length parameter of <Sketch> for setting the width of the Extrusion.
I believe that is because the information you're looking for is not stored within the element of the extrution, but within the dimension itself.
Have a look through OST_Dimensions and you may find the value you seek...
Basically you want to change the profile of the Sketch , done manually by [ Edit Extrusion] correct?
If it's your own family, why don't you build it right, with a labelled dimension for the length you want to change? That way, the change is simple, just a change of the value for a familyparameter.
Can't find what you're looking for? Ask the community or share your knowledge.