Jump to content

Autocad to Draftsight, im losing my hair over this.


Recommended Posts

Posted

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

Posted

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

  • Like 1
Posted

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?

Posted

Just do -wblock and follow the prompts so it then becomes.

 

(command "-wblock" fname "" "0,0" zoek "")

  • Like 2
Posted

yesss, getting there. 

 

 

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...