Set Relationship Value in Positional Representation

Set Relationship Value in Positional Representation

jcox9Z7J8
Contributor Contributor
200 Views
1 Reply
Message 1 of 2

Set Relationship Value in Positional Representation

jcox9Z7J8
Contributor
Contributor

Hello all, 

I need help with the API coding needed to manipulate PosReps.  I can create and activate PosReps with the API but I can't set any override values. The problem is with the PositionalRepresentation object. It has a method .SetRelationshipValueOverride(Relationship as object, enum, value). What is a Relationship in Inventor. I can't find any documentation on this object.  Please help.

 

Dim oExplode As PositionalRepresentation

Set oExplode = ThisApplication.ActiveDocument.ComponentDefinition.RepresentationsManager. _PositionalRepresentations.item("Explode")

oExplode.SetRelationshipValueOverride (?????, kRelationshipLinearPositionValue, "2.")  'Why is the value a string and not a double?

0 Likes
201 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor

I believe they area talking about AssemblyConstraint objects (generic base type for several more specific types) there (Link1, Link2, Link3).

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes