Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JAE on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to change the Line type and thickness in a drawing view

Status
Not open for further replies.

GajendraHG

Aerospace
Joined
Dec 26, 2023
Messages
5
Location
IN
Hi Team,

I have a number of drawing sheet which contains views in that, for each view im using overload properties to change the line type and thickness.
Can we automate this without using overload properties?
Scenario_1:-
Product window
Vxxxxxxxxx
1.Vzzzzzzzz
2.Vyyyyyyy

Drawing window
With respect to the 2.Vyyyyyyy(SubProduct) applying overload properties.

Please suggest me solution
 
i got the below code, which is changing properties for all the elements present in the drawing sheet.

How to make it specific part number? or except specified product it should change the properties?

"Sub CATMain()

Dim drawingDocument1 As Document
Set drawingDocument1 = CATIA.ActiveDocument


'-------------- select generated items

Dim selection4 As Selection
Set selection4 = drawingDocument1.Selection

selection4.Search "CATDrwSearch.CATEarlyGenItem,all"

Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.SetRealLineType 1,0.2 '-----------change line type

Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.SetRealWidth 1,0.2 '-----------change width


End Sub"

Please help me out
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top