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!

Catia Macro: How to get object to active body

Status
Not open for further replies.

jagandeep

Automotive
May 27, 2013
82
Hello Friends
I want to get object to currently active body in a part. Can anyone give me an idea for same ?
Any help will be highly appreciated.

Thanks
Jagandeep
 
Replies continue below

Recommended for you

Code:
Sub Ask_In_Work_Object()

Dim oPart As Part
Set oPart = CATIA.ActiveDocument.Part

Dim oObject As Object
Set oObject = oPart.FindObjectByName(oPart.InWorkObject.Parent.Parent.Name)

MsgBox oObject.Name

End Sub


______

Alex ,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor