Jump to content

Recommended Posts

Posted

Hi,

 

I would like to make code in C#, works like this (LISP):

 

Create Dictionary:

 

(defun cd:DCT_AddDict (Root Name)
  (dictadd (if (not Root) (namedobjdict) Root) Name
  (entmakex (append '((0 . "DICTIONARY")(100 . "AcDbDictionary"))))
))

;run: (cd:DCT_AddDict (namedobjdict) "MyDict");

 

Add Xrecord to my Dictionary:

 

(defun cd:DCT_AddXrecord (Root XName XData)
 (dictadd (if (not Root) (namedobjdict) Root) XName
 (entmakex (append '((0 . "XRECORD")(100 . "AcDbXrecord")) XData))
))

;run: (cd:DCT_AddXrecord (cd:DCT_GetDict (namedobjdict) "MyDict") "MyDict-SUB1" '((1 . "ABC")));

 

Have you any example?

 

I won't to add this dictionary to Entity, but to database.

 

what is the equivalent in C# for this expression: (namedobjdict)?

 

My soft: MVS2010, AutoCAD2013

 

regards

Posted

Gile has posted an example here that you may find to of use.

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...