Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

export to dgn

8 REPLIES 8
Reply
Message 1 of 9
jcflint
376 Views, 8 Replies

export to dgn

I have some lisp so that I can script plots to .pdf, I am also trying to export to .dgn in the same command. I cannot figure out how to turn off the "Export DGN Settings" dialog box. I have turned the filedia to "0" and this does not get it, can anyone help with this? Thanks in advance.
8 REPLIES 8
Message 2 of 9
Anonymous
in reply to: jcflint

Are you using an add-on utility to export to dgn from AutoCAD?
What version of AutoCAD are you using?
What is the command to export to DGN?

Paul

wrote in message news:5799527@discussion.autodesk.com...
I have some lisp so that I can script plots to .pdf, I am also trying to
export to .dgn in the same command. I cannot figure out how to turn off the
"Export DGN Settings" dialog box. I have turned the filedia to "0" and this
does not get it, can anyone help with this? Thanks in advance.
Message 3 of 9
jcflint
in reply to: jcflint

I am using 2008 here is the jist of what I am trying to do:

(defun c:2dgn ( / )
(command "filedia" "0")
(command "export" "c:\\misc stuff\\test.dgn")
);defun

the only utility that I am using along with this is the ScritpPro to script my drawings.
Message 4 of 9
EC-CAD
in reply to: jcflint

Change:
(command "filedia" "0")
To:
(setvar "filedia" "0")
.. and add-in
(initdia 0)
.. before export command.

Bob
Message 5 of 9
jcflint
in reply to: jcflint

I changed it to:
(defun C:2DGN ( / )
(setvar "filedia" "0")
(initdia 0)
(command "export" "c:\\misc stuff\\test.dgn")
);defun

and it is still poping up.
Message 6 of 9
EC-CAD
in reply to: jcflint

Ok,
then try changing:
(command "export" "c:\\misc stuff\\test.dgn")
To:
(command "-export" "c:\\misc stuff\\test.dgn")

If that doesn't work, I guess I don't know.

Bob
Message 7 of 9
jcflint
in reply to: jcflint

Still nothing, anyone else know of anything?
Message 8 of 9
dgorsman
in reply to: jcflint

If the function is set to use a dialog and has no command line version, you are out of luck.
----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Message 9 of 9
Anonymous
in reply to: jcflint

Unfortunately, that is exactly the case. There is no command line only
version of dgn export (or import for that matter). This is something that
we are aware is a problem. More I cannot say. 🙂

wrote in message news:5799832@discussion.autodesk.com...
If the function is set to use a dialog and has no command line version, you
are out of luck.

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

Post to forums  

Autodesk Design & Make Report

”Boost