Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cut/Fill daylight problems

10 REPLIES 10
Reply
Message 1 of 11
Anonymous
649 Views, 10 Replies

Cut/Fill daylight problems

So I've put together a slew of assemblies and corridors but have a problem with my daylights. I have a couple of requirements for daylight from my shoulders. In cut areas I need a 6:1 with a maximum daylight width of 36' and then the cut slope is to increase at the 36' to a maximum of a 2:1 slope. In fill areas I need a 6:1 with a maximum daylight width of 48' and then the fill slope is to increase at the 48' to a maximum of a 2:1 slope. I'm not too concerned about going past the 2:1 as I don't believe there are any areas that are that deep of a cut or fill.

So what I've done is added two daylightmaxwidth subassemblies to my shoulder subassembly. One with a horizontal fill and a 6:1 cut at 36' and one with a horizontal cut and a 6:1 fill at 48' thinking that only the one that applied would be used. However I am seeing two cut lines one at 36' and one at 48' when I apply the target surface to the corridor. It seems it is using both of my daylightmaxwidth subassemblies. Can anyone help me figure this one out?

Thanks
Tags (1)
10 REPLIES 10
Message 2 of 11
Anonymous
in reply to: Anonymous

Any ideas here? Do I need to modify the subassembly to add two widths? one for cut and one for fill?
Message 3 of 11
Anonymous
in reply to: Anonymous

I've looked at the VBA code for DaylightMaxWidth and believe with a simple modification of the code I can get it to do what I want. But holy smokes how do I get the new subassembly code into Civil 3d? Seems like a real pain to do so. I would like to just modify the standard daylightmaxwidth and use that. Is there an easy way for me to modify the code and have it be recognized in the Civil 3D environment?
Message 4 of 11
Civil3DReminders_com
in reply to: Anonymous

It's a little bit of a pain to get the program to recognize the custom subassembly. There is a decent AU 2007 paper that describes the process. In 2009 there is an easier way to do it, but that doesn't help you now. I would copy the DaylightMaxWidth code to a new module and not modify the code unless you just work by yourself.

Christopher
http://civil-3d.blogspot.com/
Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
Tags (1)
Message 5 of 11
Anonymous
in reply to: Anonymous

I cannot figure out how to get the modified code into Civil 3D. Anyone have links or suggestions for good resources out there that will help me get this rolling? I'm going to have to hire someone to get me through this one. 😞
Message 6 of 11
Anonymous
in reply to: Anonymous

What version?
2008 defaults to using .NET subassemblies, not the VBA macros. And I don't
think it's possble to tell it to use the VBA version.....I think that it is
still included for backwards compatability, as older drawings are not
converted to the .NET subs until the user specifically instructs it to.
However, the VB.NET code is nearly the same, especially if you are just
making some minor revsions. You would need to get a VB.NET compiler, I've
found that the Microsoft VB.NET Express Edition works just fine. Once you
edit the project (the samples are in the
AutoCAD Civil 3D 2008\Sample\Civil 3D API\C3DStockSubAssemblies
folder, you compile it and copy the DLL over the existing at:
C:\Documents and Settings\All Users\Application Data\Autodesk\C3D
2008\enu\C3DStockSubassemblies.dll
It will take a bit to get used to the different interface, but if you get
stuck you can ask for help in the c3d.customization group.

Now, all that is assuming you just edit an existing sub, if you create your
own, well, as Christopher said, it's not easy.

If you don't want to tackle the .NET thing yet, post (in the customization
group) the code of the Sub you changed, along with a detailed description of
WHAT you changed/added. I, or someone else if they get to it first, would
probably be able to make the changes for you.

Good luck!


wrote in message news:5870839@discussion.autodesk.com...
I cannot figure out how to get the modified code into Civil 3D. Anyone have
links or suggestions for good resources out there that will help me get this
rolling? I'm going to have to hire someone to get me through this one. 😞
Message 7 of 11
Civil3DReminders_com
in reply to: Anonymous

You can use VBA for a subassembly in 2008, you just use the same format as the 2007 atc file. I found the hardest part of creating the custom subassemblies was figuring out how the atc file worked.

Christopher
http://civil-3d.blogspot.com/
Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
Message 8 of 11
Anonymous
in reply to: Anonymous

Hey Thanks for the replys. I'll give this a shot!
Message 9 of 11
Anonymous
in reply to: Anonymous

Ok got the VB 2008 express. Compiled and copied new .dll to the correct path. But my changes don't seem to be taking effect. Do I need to somehow tell the compiler that ,"Hey! I changed this file! Look at it!"
Message 10 of 11
Anonymous
in reply to: Anonymous

You just need to restart C3D. Once a DLL is loaded you cannot unload it nor
reload it, only a closedown of C3D and restart will clear it from memory.


"phildo77" wrote in message news:5871695@discussion.autodesk.com...
Ok got the VB 2008 express. Compiled and copied new .dll to the correct
path. But my changes don't seem to be taking effect. Do I need to somehow
tell the compiler that ,"Hey! I changed this file! Look at it!"
Message 11 of 11
Anonymous
in reply to: Anonymous

Jeff,

Your reply got me going to where I needed to be. Thanks! The rest of the help was good also. I'm fixed and now can edit my own subs in vb.net.
My next challenge is trying to stop a slope at another corridors slope. But I'm thinking I can create a corridor surface on one of the corridors. Then do the same for the other one using the previous corridor surface as at target. Then repeat for the first one to get my surfaces/slopes to stop at the intersection point.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report