Still haven't found anything on how to create a dynamic block or modify a dynamic block definition using AutoCAD's .NET API. Think this is an item for the wish list.
|
Still haven't found anything on how to create a dynamic block or modify a dynamic block definition using AutoCAD's .NET API. Think this is an item for the wish list.
Looks like all the properties are kept in the extension dictionary of the block table record. At least that is how I got there with lisp.
But I don't see what to do from there with .Net.
I think I've gotten to about the same point with .NET. There is some sort of object called an "ImpDBObject" in the dictionary. I'm guessing it holds the secret to the Dynamic Block Definition. I don't know where this object comes from or if I can include it in my .NET project. Any ideas?
If I wanted to know how to build stuff with the .Net language, I would go here and download the db view arx. It will show you the items that make up a dynamic block, and then it might help you along your path with other questions.
Attached is a sample look at one of my dynamic blocks (the only one I have done so far). You can see the items that are in the extension dictionary, and the names of such items, and hopefully that will start you on your path.
When you do find how to do this, I hope you will share your code so others can learn from what you have done.
Follow this thread as i wish to start BEditor and enter <Current Drawing> from a script see below
where i want to replace xx with -BE <Current Drawing>, but from what you say i can not enter BE from script, however this script start out of BE then can be resumed in BE
Any guidance
Open C:/Library/Rap2/R008D01
xx
-BVState S Front
-Insert C:/Library/Rapid/Rap1/R008D02
0,0 1 1 0 -BVState N
End To
H -Insert C:/Library/Rapid/Rap1/R008D03
0,0 1 1 0 -BVState N
End Away
H -Insert C:/Library/Rapid/Rap1/R008D04
0,0 1 1 0 -BVState N
Plan To
H -Insert C:/Library/Rapid/Rap1/R008D05
0,0 1 1 0 -BVState N
45° To
H -Insert C:/Library/Rapid/Rap1/R008D07
0,0 1 1 0 -BVState N
45° Away
H -Insert C:/Library/Rapid/Rap1/R008D08
0,0 1 1 0 -BVState S Front
BVMode 1 DiddlePoints BVMode 0 _Bsave Bclose Zoom E Qsave Close