Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
VB(A)
»
Topic:
Changing pipe styles
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Changing pipe styles (Read 2834 times)
0 Members and 1 Guest are viewing this topic.
zombies640
Mosquito
Posts: 12
Changing pipe styles
«
on:
June 11, 2017, 01:14:35 AM »
Hey guys, playing around with editing pipe data and thought about changing the styles with a click. I keep getting a "Parameter incorrect" error on the "oPipe.Style.Name = newName" line...not sure if I can do it this way or if I have to do something with the database first...
Edit: Hang on...might have figured it out...will post my results as a new post.
«
Last Edit: June 11, 2017, 02:09:24 AM by zombies640
»
Logged
zombies640
Mosquito
Posts: 12
Re: Changing pipe styles
«
Reply #1 on:
June 11, 2017, 02:27:51 AM »
Okay, figured it out. I was trying to directly set the pipe style by specifying the string, but after looking at the example code, I found that I needed to access the style names from the collection.
Logged
BIGAL
Swamp Rat
Posts: 1305
40 + years of using Autocad
Re: Changing pipe styles
«
Reply #2 on:
June 12, 2017, 12:24:41 AM »
You may be interested did something similar with the contours I have them changing via a Toolbar with the preset values as icons. Again change the style. Avoids the need to use Toolspace.
Logged
A man who never made a mistake never made anything
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
VB(A)
»
Topic:
Changing pipe styles