Author Topic: Creating dynamic blocks  (Read 2770 times)

0 Members and 1 Guest are viewing this topic.

Tasaq

  • Guest
Creating dynamic blocks
« on: January 14, 2015, 01:40:27 PM »
I need to create a BlockReference that will have DynamicBlockTableRecord containing ExtesionDictionary with ACAD_ENHANCEDBLOCK (so I have that triangular girp visible after inserting block). I know the logic behind EvalGraph so it should be easy for me to edit it, but I have no idea how to create and add it to the dictionary. Is there any way to achieve this?

BillZndl

  • Guest
Re: Creating dynamic blocks
« Reply #1 on: January 14, 2015, 02:06:00 PM »

Tasaq

  • Guest
Re: Creating dynamic blocks
« Reply #2 on: January 15, 2015, 11:14:19 AM »
I don't see there anythng I could use. Most of the code there uses already existing blocks or inserts it from dwg file.

BillZndl

  • Guest
Re: Creating dynamic blocks
« Reply #3 on: January 15, 2015, 01:00:25 PM »
I don't know if it's possible, I've never done it myself.
http://forums.autodesk.com/t5/net/definition-of-dynamic-blocks-with-net-api/td-p/2377920
Maybe someone else can chime in that knows more.


I don't see there anythng I could use. Most of the code there uses already existing blocks or inserts it from dwg file.


Tasaq

  • Guest
Re: Creating dynamic blocks
« Reply #4 on: January 15, 2015, 01:36:37 PM »
I also stumbled upon this post today. It seems it's not possible with current API. It's a shame, it would give so many interesting possibilities.

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: Creating dynamic blocks
« Reply #5 on: January 15, 2015, 03:06:58 PM »
Creating anything more than a simple block would be easier to do manually, given all the tools and interfaces are already provided inside AutoCAD.
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}

mohnston

  • Bull Frog
  • Posts: 305
  • CAD Programmer
Re: Creating dynamic blocks
« Reply #6 on: January 22, 2015, 01:06:41 AM »
You can't create a dynamic block definition in code but can manipulate dynamic properties of existing blocks
It's amazing what you can do when you don't know what you can't do.
CAD Programming Solutions