Martin van Stigt Thans Posted February 26, 2023 Posted February 26, 2023 Dear Lisp pro`s I have a perfectly nice functioning lisp routine for AutoCAD, however Draftsight doesn't want to do 1 thing. So here's the thing, we have to get all the entities from layer 0 transformed were magenta will be white and color 40 will be yellow, this all works like a charm. A list is created with the proper selections for export thru for example (setq zoek (ssget "X" (list(cons 62 6)))) so whap happens is, everything gets set to the right color but when using. (command "dxfout" naam1 "v" "r12" "O" zoek "" "16") it does indeed export to dxf but it exports everything, the command manager clearly says theres a few errors., I have tried so many things and must say the documentation for draft sight is lacking (and I'm a little bit inexperienced) can anyone here help me? original lisp is added as a attachment. Dxf_dts.lsp Quote
Steven P Posted February 26, 2023 Posted February 26, 2023 I don't have draftsight, but you can do this manually? So what steps do yo do to do this maunally? Copy from, the command line maybe 1 Quote
mhupp Posted February 26, 2023 Posted February 26, 2023 doesn't look like dxfout isn't supported. use this command instead. https://help.solidworks.com/2021/english/DraftSight/html/hlpid_block_wblock.htm 2 Quote
Martin van Stigt Thans Posted February 26, 2023 Author Posted February 26, 2023 What approac would i take for a block? get the selected enitities in: (setq zoek (ssget "X" (list(cons 62 6)))) and then make a block somehow? Quote
BIGAL Posted February 26, 2023 Posted February 26, 2023 Just do -wblock and follow the prompts so it then becomes. (command "-wblock" fname "" "0,0" zoek "") 2 Quote
Martin van Stigt Thans Posted February 27, 2023 Author Posted February 27, 2023 yesss, getting there. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.