Hi to all,
how can i scale an Attachment using different scale factors?
Thanks for your help!
Olaf
Hi Jan,
sorrry for your trouble (my first post)
Using Bentley.Interop.MicroStationDGN there is not property DisplayScale (we currently waiting for SDK)
Is there an opportunity to use an Attachment as a graphical element to use element.ScaleAll?
Thanks
Olaf Balke said:Using Bentley.Interop.MicroStationDGN there is not property DisplayScale
You do not write you use Interop. When I see C#, I decide automatically it is C# API (whereas NET Interop is based on COM object model, shared with VBA) ;-)
In VBA, there is Attachment object available wtih ScaleUniform method.
Olaf Balke said:Is there an opportunity to use an Attachment as a graphical element to use element.ScaleAll?
As described in documentation, ScaleAll works with graphical elements. The attachment itself is not graphical element.
In fact I do not quite understand the question, because why to ask when it is clear (both in VBA and Visual Studio) the attachment object has no such method?
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Using the ScaleUniform method we can only use one scale factor - but we need two different scale factors (x=1, y=5)
Want we want to do is described in this post: Is it possible to change reference file's X and Y axis with different scale?
Is there an opportunity to do this by code?
Olaf Balke said:Want we want to do is described in this post
Don't you think you should start with this information and do not waste time to asking using not complete information?
Olaf Balke said:Is there an opportunity to do this by code?
Where the problem actually is?
When "Treat as element" switch is mentioned in the linked post, to find Attachment.ManipulateAsElement property is trivial.
So I assume the code should follow how it can be done manually: