.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

C# - Dictionary

2 REPLIES 2
Reply
Message 1 of 3
ZK_BUDiKOM
1054 Views, 2 Replies

C# - Dictionary

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?

 

My soft: MVS2010, AutoCAD2013

 

regards

2 REPLIES 2
Message 2 of 3
ZK_BUDiKOM
in reply to: ZK_BUDiKOM

Ok,

 

I have found solution here:

http://www.theswamp.org/index.php?topic=38958.0;all

 

regards

Message 3 of 3
arthurmarsh
in reply to: ZK_BUDiKOM

More on...C# Dictionary

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost