Hi
How to confirm this Dialogue Box in lisp :
(command "_AeccCreateSurface")
|
Hi
How to confirm this Dialogue Box in lisp :
(command "_AeccCreateSurface")
You can't confirm the dialog via AutoLISP. However, you can create a surface using the COM libraries. Jeff has an example over on the Autodesk forums. The surface style name provided to the routine must be present in the current drawing.
On top of that, you will need to update the verstr to correspond to your currently active civil 3d. Here is a sub-routine "defun c3dver", which will retrieve this string from the registry.
If you have a technical question, please find the appropriate forum and ask it there.
You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
jUSt
I have visited posted link and used Jeff's sub-routine in my work, with a slight change of course, which you may find as 1st attachment. Unfortunately, I couldn't create any surface even an empty one (a surface which only its name is specified). Please note that I could create surfaces from data point files with other lisps (2nd and 3rd attachments). I was hoping if you could give me firstly a few more tips to modify 1st attached sub-routine and secondly a lisp to create an empty surface.
The method used in Jeff's routine, as shown in 1st.lsp, requires the surface style name provided to the method is actually in the drawing. As long as that style name is found, the method will create a surface even if no surfaces are in the drawing. There is not always a surface style named "Standard" in each Civil 3D drawing.
The 2nd.lsp uses the same method, however, it is also assigning a point file to that surface. Is the file format specified, "ENZ (comma delimited)", available to the drawing?
If you have a technical question, please find the appropriate forum and ask it there.
You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
jUSt