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

Programatically create block with base point

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
728 Views, 2 Replies

Programatically create block with base point

Hi

 

I have a code that currently is able to create blocks programmatically with attributes (using AttributeDefinition for example)

 

Anyway I would like to add a base point parameter programmatically to my created block. I cannot find any API documentation on adding this kind of parameters to blocks:

 

basepoint.png

 

 

Can anyone point me to a sample reference or documentation?

 

Thank you

Tags (2)
Labels (3)
2 REPLIES 2
Message 2 of 3
Alexander.Rivilis
in reply to: Anonymous

For static BlockTableRecord you can use BlockTableRecord.Origin property. Also there is no public API which can help to create dynamic block (https://adndevblog.typepad.com/autocad/2013/02/dynamic-block-with-stretch-action.html)

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

Message 3 of 3
Anonymous
in reply to: Alexander.Rivilis

Thank you.


Got it working by using the Origin as you suggested.

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

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report