×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

capture relations

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

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

 

RE: capture relations

(OP)
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.

RE: capture relations

Hi,

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

dy
 

RE: capture relations

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

IMHO?

Thanks,

RE: capture relations

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

RE: capture relations

(OP)
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:)
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources