API - get Parameter object from assembly constraint.

API - get Parameter object from assembly constraint.

Jef_E
Collaborator Collaborator
738 Views
1 Reply
Message 1 of 2

API - get Parameter object from assembly constraint.

Jef_E
Collaborator
Collaborator

Hi there,

 

It's Answer Day, last time there was a seperate board for us to ask questions, now there isn't? So I suppose it's here we should ask the questions?

 

My question:

 

I’m looking for a way to get a parameters object from assembly constraints. I want to edit constraints via my addin, but can’t find the value for the constraint.

 

I have done this before with dimension constraints like this, but now I can’t find the solution for assembly constraints.

DimensionConstraint.Parameter() As Parameter

 

Please advise



Please kudo if this post was helpfull
Please accept as solution if your problem was solved

Inventor 2014 SP2
0 Likes
Accepted solutions (1)
739 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution
Something like MateConstraint.Offset, maybe?
The other AssemblyConstraints have similar properties: AngleConstraint.Angle, InsertConstraint.Distance, etc, that get you the Parameter you need to modify the constraint.