capture relations
capture relations
(OP)
I am having the hardest time getting anyone to respond on any forum about captured fits. Does anyone know how to programmatically set a geometry type of a part file to be used in capture fit. i can see using solid edge spy that my document (a nut) has a 'capturerelationshipcount' of 1, and a 'hascapturedrelationships' set to true. But I don't have any idea how to identify which body it's using or for what type of relationship. Does anyone have any idea?





RE: capture relations
I think it can only be done interactivly. The only method
available is (assembly document):
CaptureRelationships(RelationshipCount As Long, RelationshipsToCapture() As Object)
This implies IMHO that a relationship already exists and you
have to specify (in an array) the 3D-relation objects to be captured
dy
RE: capture relations
Thank you so much for your response. I am fairly new to programming. Could you give me an example line of code for to making this work.
RE: capture relations
sorry but I've no code snippet that does just that.
dy
RE: capture relations
IMHO?
Thanks,
RE: capture relations
holds. Even when it's only one it must be passed to the method
in an array.
dy
RE: capture relations
This is my only relation applied to my part
Dim objRelNuttoScrew as Solidedge.assembly.axialRelations3d = nothing
objRelNuttoScrew = objReleations3d.addaxial(objReftoConeInNut, objreftocylinderinscrew, false)
This is my attemp at capturing relationship
Dim objB as Solidedge.occurence = nothing
Dim objRelationsforcapture(0) as array
objrelationsforcapture (0) = objRelNuttoScrew
objb.capturerelationships(0, relationshipstocature:= objRelNuttoScrew)
Like I said i'm new to programming:)