Obtain Parameter Object from Constraint Object

Obtain Parameter Object from Constraint Object

Anonymous
Not applicable
383 Views
3 Replies
Message 1 of 4

Obtain Parameter Object from Constraint Object

Anonymous
Not applicable

Using Inv 2013. In the rectangular pattern, you can obtain the parameter objects driving that pattern. This is useful because you can rename them for later use. Is there a way to obtain the parameter object from a constraint object? When creating constraints, it would be nice to rename the driving parameters for later use. Or,


Eric

0 Likes
384 Views
3 Replies
Replies (3)
Message 2 of 4

philippe.leefsma
Alumni
Alumni

Which constraints are you talking about? You need to be a bit more specific if you are looking for a specific answer... Take a look at the relevant object properties in the API Help Files:

 

For example

       

         MateConstraint.Offset Property: returns the Parameter object controlling the offset between the occurrences

        

         TwoPointDistanceDimConstraint.Parameter Property: return also the parameter controlling the distance of that constraint

  

         And so on ...

 

I hope it helps,

Philippe.

 



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 4

Anonymous
Not applicable

My appologies, I was talking about an assembly constraint object.

0 Likes
Message 4 of 4

philippe.leefsma
Alumni
Alumni

Well then you got your answer: each assembly constraint object should expose a property that returns the parameter(s) controling the constraint.

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

0 Likes