TheSwamp

Code Red => .NET => Topic started by: zmwp3214 on September 09, 2008, 01:35:26 PM

Title: Visual Studio .Net Program For Civil 3d
Post by: zmwp3214 on September 09, 2008, 01:35:26 PM
Hello,

I am tryin to write a program that will allow us to select a civil 3d object label and then have it tell us in a palette what the style name is and what layer the txt is on. Allow us to be able to see what layer we need to freeze with out having to memorize hundreds of style settings.

I am working on the start code for the palette and will post it once i have it completed. I am mainly wondering what codeing will be required to select the object and then access its civil 3d style information.

Thank you for your help.
Title: Re: Visual Studio .Net Program For Civil 3d
Post by: It's Alive! on September 09, 2008, 01:52:01 PM

Welcome to the Swamp!
Do a search for Sincpac-C3D, and have a look at this website http://www.quux.biz/
I think there is a ton coding samples here http://www.quux.biz/SincpacC3D_source.aspx
Title: Re: Visual Studio .Net Program For Civil 3d
Post by: zmwp3214 on September 09, 2008, 01:58:56 PM
thanks i will check it out
Title: Re: Visual Studio .Net Program For Civil 3d
Post by: zmwp3214 on September 09, 2008, 02:01:18 PM
does Sincpac already have a tool that will do this? i had the trial on my pc and we have since bought it for the whole company for the survey tools and didnt remember seeing what we are looking in this case in it.
Title: Re: Visual Studio .Net Program For Civil 3d
Post by: sinc on September 09, 2008, 06:19:49 PM
No, there's no tool for that yet.  It might not even be possible - API access to C3D styles and labels is still quite weak.  I suspect it's one of those things where it would be possible to get it working for maybe 80% of the C3D entities, but I'd have to start digging into it to find out.

It's something that's on the list, but there's some even more-useful things ahead of it.

And actually, a tool that merely IDs the layer isn't all that useful for people who have been using C3D for a while.  The useful thing will be new Layer Tools - the equivalent of "Layer Off", "Layer Freeze", "Match Layer", etc. - that work on the apparent layer of C3D entities, rather than the Object Layer.  But once one of these tools is working, it's relatively easy to do the rest.  The hard part is digging through the morass of styles in C3D, which isn't easy (both because of the design of C3D, and because of the current level of API access to C3D).