×
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

[CATDrawing] Vb Objet name to change hatchings to colors?

[CATDrawing] Vb Objet name to change hatchings to colors?

[CATDrawing] Vb Objet name to change hatchings to colors?

(OP)
Hi all,

I try to make a macro, in CATDrawing to change the hatchings in colors but I don't find the vb code/objet to do it, have you an idea?

I'll arrive to select all hatchings, bue after that...

thank you help

Boris

RE: [CATDrawing] Vb Objet name to change hatchings to colors?

(OP)
up :)

RE: [CATDrawing] Vb Objet name to change hatchings to colors?

I've been looking for any objects related to drawing/dress-up/area fill and haven't found anything.

My solution: You should search all objects "area fill", then select results, and press ctrl+enter to show properties menu

If You are interested in Macros in Catia (Catscripts, Catvba) feel free to send me a message. I will wrote specified macros for free and post it on eng-tips forum

RE: [CATDrawing] Vb Objet name to change hatchings to colors?

(OP)
The properties (right click on hatchs) are "GeneratedShape/HlrViewFeat.1"
I try to find informations on "V5Automation.chm", but nothing!

As i said i my first thread, i arrive to select all hatchs like that, with "CATEarlyGenShape"
Dim uVisProperties As VisPropertySet
Set uVisProperties = uselection.VisProperties
uselection.Search "CATDrwSearch.CATEarlyGenShape,all"


but to colour in the hatchings is another story...

RE: [CATDrawing] Vb Objet name to change hatchings to colors?

CODE --> Language="VBSCRIPT"

Sub CatMain()
CATIA.ActiveDocument.Selection.Search "Drafting.'Area Fill',all"
End Sub 

Run Macro, then press Alt+Enter. You will be able to change properties of all filled areas at once

Area fills are not exposed to V5Automation...

If You are interested in Macros in Catia (Catscripts, Catvba) feel free to send me a message. I will wrote specified macros for free and post it on eng-tips forum

RE: [CATDrawing] Vb Objet name to change hatchings to colors?

(OP)
Thank's Luka!

This solution works, but only for the CATPart's drawing. For CATProduct's rawing, I would like to differentiate my treatment for each CATParts. And if i select all in same time...

I thought of applying one materials different for every CATPart of the CATProduct and to associate in materials a special color characteristic. But I can't get back in the CATDrawing this information. Also I can't modify the color of the hatchings according to every CATPart (may be you know how?).


arrggg!

RE: [CATDrawing] Vb Objet name to change hatchings to colors?

Probably you need to explain us what you want to do in fact...there are also some other options to color an area in drawing workbench, please check pictures attached...and if I'm thinking there are also some others...color coming from 3D, overload properties, a.s.o.

Regards
Fernando

https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...

RE: [CATDrawing] Vb Objet name to change hatchings to colors?

(OP)
well, what i want to do...

In CATDrawing,
First, i would like to use macro to select all hatchs from CATPart OR CATProduct. For this point i'm ok.
Second, change hatchs colors, i would like the color of the hatchings is the same of the CATParts.
And finaly, Change hatch to coloring areas.

Easy no? banghead

I hope to be more clear

RE: [CATDrawing] Vb Objet name to change hatchings to colors?

Boris, You have to understand, that hatchings are attached to views, not to specified part on the view.
There is no simply way to determinate, which hatchings are attached to specified part.

If You are interested in Macros in Catia (Catscripts, Catvba) feel free to send me a message. I will wrote specified macros for free and post it on eng-tips forum

RE: [CATDrawing] Vb Objet name to change hatchings to colors?

(OP)
I had understood, I just made a summary for Ferdo wink

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