×
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

CATIA V5 hide/show Dimensions(measurements)

CATIA V5 hide/show Dimensions(measurements)

CATIA V5 hide/show Dimensions(measurements)

(OP)
Hi,

CATIA automation VB.net-

I am working on a VB.Net macro, which will hide and show Dimensions(measurements)at CAT Product level.
Can some one help me with this.
For this which libraries are required, and which command is used for hide/show of measurements.



Mahindra Satyam

RE: CATIA V5 hide/show Dimensions(measurements)

please check V5automation.chm in your install folder

Eric N.
indocti discant et ament meminisse periti

RE: CATIA V5 hide/show Dimensions(measurements)

(OP)
I am going through this .chm file but its a big file not able to track the required Library,
Its difficult for me.
Can you tell me the Library name.

Also .chm file is for VB scripting, I need the library for VB.net

RE: CATIA V5 hide/show Dimensions(measurements)

The code might be slightly different in VB.NET, but here's the CATVBA code:

CODE --> catvba

Sub CATMain()

Dim productDocument1 As ProductDocument
Set productDocument1 = CATIA.ActiveDocument

Dim selection1 As Selection
Set selection1 = productDocument1.Selection

'Search based on the measurements name
selection1.Search "Name='MeasureBetween.1',all"

Dim visPropertySet1 As VisPropertySet
Set visPropertySet1 = selection1.VisProperties

visPropertySet1.SetShow 1

selection1.Clear

End Sub 

Drew Mumaw
www.textsketcher.com
www.drewmumaw.com

RE: CATIA V5 hide/show Dimensions(measurements)

(OP)
Thanks for that code, it works with some changes

Can Any one let me know if there is any Book or Site which helps in learning VB.Net for CATIA

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