Print or export to image an object from a drawing using C# / C++ Object ARX

Print or export to image an object from a drawing using C# / C++ Object ARX

Anonymous
Not applicable
942 Views
2 Replies
Message 1 of 3

Print or export to image an object from a drawing using C# / C++ Object ARX

Anonymous
Not applicable

Hello,

 

Is there a way to print or save to image a specific object in a drawing. I know the ObjectId of the object I need.

 

Thanks,

 

Mihail

0 Likes
943 Views
2 Replies
Replies (2)
Message 2 of 3

Alexander.Rivilis
Mentor
Mentor

I see three ways:

1. Remove (pEnt-> erase (true)) or hide (pEnt-> setVisible (false)) all other entities and then print window exactly boundingbox of the entity end restory all other entities.

2. Create another database and copy the selected entity in it, and then print this database.

3. Move selected entity far away other entities and print window exactly boundingbox of the entity, then move backwards

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | 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

0 Likes
Message 3 of 3

Anonymous
Not applicable

Hello Alexander,

 

Thank you for your reply, but I do not know how that helps me.

 

To make it more clear what I want to achieve, I have to export the images of the symbols available in the Autocad project. They are stored (at least for Autocad P&ID, which I have to use) in the projSymbolStyle.dwg file. I need the images as they are shown for example on the Tools Palette, and I want to be able to remove the background color, or at least set a custom one.

 

Thank you, 

 

Mihail

0 Likes