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!

Macro to compare Components in assembly

Status
Not open for further replies.

kavellis

Aerospace
Jan 13, 2019
3
IN
Hello all,

Need help to compare Components in a Assembly and find the missing parts.
+--------+
!Product1!
+--------+
!
+- Component1 (M01)
! !
+- Component2 (M02)
! !
+- Component3 (M99)

The user makes a COPY of some parts from Component1 and Component2 and PASTE in Component3 for mockup purpose. Later component 1 and 2 will be deactivated in the tree.
Ex: Component1 and 2 contains around 300 parts, component3 contains only 50 parts which are required to visualise in mockup.

My requirement is to find the missing parts (if any) in Component3 while making a copy from Component1 and 2. As its is difficult to zoom in every part in component3 and more over the part number and instance name is different for all the components and parts.

Any help on this is highly appreciated.

Thank you in advance,

Best regards,
Kavelli.
 
Replies continue below

Recommended for you

Hello Fernando,

Thanks for the reply.
I do not have the licence for the comparison. I have basic HD2 licence.
That's the reason I was looking for an alternative solution.

Best regards,
Kavelli.
 
Hi,
I do not understand your remark in last sentence "more over the part number and instance name is different for all the components and parts". If it is really so, then it is almost impossible task even with macros.



Tesak
- Text along a curve for Catia V5
 
Hi Tesak, Hi Frenando,

@Fernando: Right now i am checking using clash analysis. But it is taking more time for checking.

@Tesak: Yes the instance name will be (Myname_date_time stamp_number of part instance)
Ex: -kavelli_06.12.2017_11.29.07_010
-kavelli_06.12.2017_11.29.07_011

Is it possible for a code which zooms in every part in Component3 to visually check the part?
until transparency and color I made it. please find the code below. If i could ZOOMIN each part in M99 i think it will be time saving process for me.

Dim selection1 As Selection
Set selection1 = CATIA.ActiveDocument.Selection
selection1.Search "Name=*M99*"
Set visPropertySet1 = selection1.VisProperties
visPropertySet1.SetRealColor 0, 0, 255, 1
visPropertySet1.SetRealOpacity 128, 1
CATIA.StartCommand "activate terminal node"
selection1.Clear

Regards,
kavelli.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top