Continue to Site

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!

Hidden Line problem 1

Status
Not open for further replies.

amitkulk

Automotive
Jun 30, 2002
52
US
Dear all.

I have a small problem.. After creating the views I have to change the hidden line type to continuous. It takes too much time to do so. Is there any option by which i will get the hidden line type as continuous at tje time of view creation. Which will save my time,

Regards
Amit
 
Replies continue below

Recommended for you

hi Amit,
u can change linetype by scripting as follows:

selection1.search "Name = Line.1" 'for example,u can search and select line depending on ur requirement'

set vispropset1 = selection1.visproperties

vispropset1.setreallinetype 1,1

selection1.clear()

Hope it works for u

bye
Naveen
 
hi naveen

thanks for the help but my requirement is some what different. I want to create the hidden lines with font 1, Currently I am able to change the line type bye Ctrl+f and line type as 3 and then convert them to 1 but it takes too much time so i need a short cut which will create the lines in 1 font,,,
any ways thanks for help
Regards
Amit
 
hey Amit,u can also createline with scripting and u can change type of it,

Set Fact2D = drawingview1.Factory2D

set line2D = Fact2D.createline(X coordinate of 1st pt,y cor of 1st point,x coord of 2nd pt,y coord of 2nd pt)

set line2D = Fact2D.createline(10,10,20,20)

line2D.Name = "Test"

set selection1 = drawingDocument1.selection

selection1.search "Name = Test"

set vispropset1 = selection1.visproperties

vispropset1.setreallinetype 3,1

I hope is this one u looking for,

bye

Naveen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor