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 V5 hide/show Dimensions(measurements)

Status
Not open for further replies.

mvcky2008

Mechanical
Dec 17, 2011
5
IN
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
 
Replies continue below

Recommended for you

please check V5automation.chm in your install folder

Eric N.
indocti discant et ament meminisse periti
 
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

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

Code:
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
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top