macro catia V5
3 participants
Page 1 sur 1
macro catia V5
Hi there,
I want to create a macro in catia v5 that colored the operation of Part Design, for example :
when you make a "split" the operation will be colored automatically by a defined color.
There is someone who can help me ?
I want to create a macro in catia v5 that colored the operation of Part Design, for example :
when you make a "split" the operation will be colored automatically by a defined color.
There is someone who can help me ?
wassimo- timide
- Messages : 1
Date d'inscription : 01/11/2016
Localisation : Tunis
Re: macro catia V5
Hi,
In your example, when you make a "split" it is by using the tool to split or by using a macro that automatically split ?
You want to color the faces generated by the operation ? At what time you want to run the macro ?
In your example, when you make a "split" it is by using the tool to split or by using a macro that automatically split ?
You want to color the faces generated by the operation ? At what time you want to run the macro ?
Guss_- Admin
- Messages : 530
Date d'inscription : 08/01/2010
Re: macro catia V5
Hi,
Here an example of code witch color pad and split.
you can add all other shapes you use in your parts.
Here an example of code witch color pad and split.
you can add all other shapes you use in your parts.
- Code:
'vbscript
Sub CATMain()
Dim oselection 'As Selection
set oselection = CATIA.ActiveDocument.Selection
oselection.Search "Name=*Pad*,all"
Dim Kolor 'As VisPropertySet
Set Kolor = oselection.VisProperties
Kolor.SetRealColor 10, 10, 200, 0
oselection.clear
oselection.Search "Name=*Split*,all"
Set Kolor = oselection.VisProperties
Kolor.SetRealColor 255,255, 10, 0
End Sub
lumpazepfel- Fédérateur
- Messages : 319
Date d'inscription : 02/11/2015
Localisation : Ensisheim
Sujets similaires
» Macro Catia v5 r27
» Macro Excel Catia
» Macro dans catia inertie
» Problème Macro Catia V5R18
» Macro CATIA vers Excel
» Macro Excel Catia
» Macro dans catia inertie
» Problème Macro Catia V5R18
» Macro CATIA vers Excel
Page 1 sur 1
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum
|
|