Thursday, 28 April 2011

Civil3d Pipe Style with thick dashed line

Trying to find a tutorial that i think Matt ? or someone did on making a pipe style with a thick dashed line
no luck. I did find this one but http://advsurveying.com/blog/?p=303
Still would like to find the other tutorial have you seen it on the net if so please paste the link in the comments below.

Setting Visual Basic Express 2008 & 2010 Debug Path

From the vba to vb.net migration video this is how you setup Autocad as the default debug program. Note the same process works for C# Express if you add the lines to the file ending with .csproj
2011-04-25_1858

Wednesday, 27 April 2011

Monday, 18 April 2011

Civil3d Quick Pipe Edit

Coming up on almost 2 years ago Christopher at Civil3dReminders wrote some code to have the start, end and slope information of pipes displayed within Civil3d using the TransientGraphicsAPI.
I have extended Christopher’s code below in order to create a Quick Pipe Edit (QPE) command along the lines of the built in featureline Quick Elevation Edit command available in Civil3d.   
To use the code download the compiled dll from here https://sites.google.com/site/c3dxtreme/home/PipeSample.dll?attredirects=0&d=1
or source code from here and compile it
https://sites.google.com/site/c3dxtreme/home/Pipeedit-V1.zip?attredirects=0&d=1

1. Type Netload at the commandline browse to and load the download project .dll
2. Type QPE at the command line.
Note: Using this command may trigger event viewer to stop the event viewer displaying see the post have http://caddmando.blogspot.com/2008/12/turn-off-event-viewer-in-civil-3d.html
3. Hover the cursor near the start, end or centre of the pipe you want to edit.
4. Information on the specified location is displayed.
5. DoubleClick the mouse button to edit the displayed pipe information.
Note: The slope is always back calculated from the start invert and the end invert adjusted accordingly.
6. Once you have finished type QPEE to end the command and remove the events handlers
The code works as demonstrated in the following screen capture.
Unable to display content. Adobe Flash is required.
Being version 1 of the code  it has limited error trapping and it works for me but is not perfect so use it at your own risk. 
My ultimate goal was the mimic the behaviour of the featureline Quick Elevation Edit command. However I have fallen short in a number of areas.
1. To edit the pipe information a doubleclick is required instead of a single click.
I have not been able to find out now to capturer the event when the user just clicks the left mouse button once. According to the online help there is no leftclick event exposed
http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer%27s%20Guide/index.html

I have in the past used an operating system hook to capture the Mouse Click Event similar to the process documented here
http://www.vbforums.com/showthread.php?t=358556
but there must be a simpler way with .net now.
2. The pipe information is displayed as text in the drawing and not next to the cursor.
I found a code example here how to do it in C# with and undocumented API call and managed to get it up and running but it needs more work and I would like to convert all the code to vb.net instead of having to reference a separate C# .dll with the code
http://forums.autodesk.com/t5/NET/Dynamic-Input/td-p/1339772
While researching this issue I initially thought I had to display the information in the tooltip. But a tooltip only displays the information temporarily. Here are some links I found on adding information to the tool tip for reference anyway.
http://through-the-interface.typepad.com/through_the_interface/2009/07/providing-information-on-autocad-objects-in-a-tooltip-using-net.html
VB.net version
http://forums.autodesk.com/t5/NET/Pointmonitor-for-VB-net/m-p/2891662/highlight/true#M22368

3. You have to end the command by firing another command to remove the event handlers in use.
The initial command sets up a number of event handlers these need to be removed with you are finished with the code. You should be able to use another event like endcommand or esc key press to target a rountine to close the event handlers automatically but I do not know how to implement this at this stage.

Any feedback/comments on how I could implement these changes would be appreciated.

Sunday, 17 April 2011

Quickly Deleting Recovered drawings

Just loving this button at the moment to jump quickly to the drawing folder and delete recovered drawings messing up the folder.
http://c3dxtreme.blogspot.com/2011/02/open-windows-explorer-in-folder-of.html

Manually Lock and Unlock PVI in Profile

One I will forget if I do not write it down. You can manually lock and unlock PVI in the profile geometry
editor window it is just hidden off to the side scroll to the far right and you will find it. Note if you use the intersection
wizard the PVI are locked for you to the primary road if you choose so but you can remove at a later date if needed.
image

Friday, 15 April 2011

Civil3d 2012 Pipe Inverts at Structure walls Part 3

Well I have download Civil3d 2012 and loaded it and looked into this new pipe rule and the verdict for me is not good.Sure it stops the pipe short in plan view and has the grips there but the grips are not at the edge of the structure in ProfileView as I hoped.

Also the alignment from network parts command does not work correctly now and the alignment places the IP not at the centre of the structure but jumps to the end of the next pipe this error is most likely dependant on the angle of deflection between the incoming and out going pipes.
2011-04-15_2138

Peter Thomson’s comments on the subject

http://forums.autodesk.com/t5/AutoCAD-Civil-3D/C3D-2012-Pipe-and-Structure-Band-labels/m-p/2992024#M150345

 

Related Posts Plugin for WordPress, Blogger...