Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

capture relations

Status
Not open for further replies.

mdrummond

Industrial
Feb 21, 2008
37
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?
 
Replies continue below

Recommended for you

Hi,

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

 
Don,

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.
 
Hi,

sorry but I've no code snippet that does just that.

dy
 
Ok, maybe you can help me understand the relationshipcount. Why don't I just need to include the relationship object?

IMHO?

Thanks,
 
the count specifies how many relationships objects the array
holds. Even when it's only one it must be passed to the method
in an array.

dy
 
still having trouble. Don't think I'm declaring my array properly.

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:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor