Code Red > VB(A)

Changing pipe styles

(1/1)

zombies640:
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.

zombies640:
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.

BIGAL:
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.

Navigation

[0] Message Index

Go to full version