Hi,
Im trying to show the reference properties dialog after adding programmatically an attachment to the active model.
Adding the attachment is working, but now i need to show the attachment properties dialog to the user.
I tried the key-in "reference properties" like this:
var moniker = DgnDocumentMoniker.CreateFromFileName("C:\\reference-test\\ref-1.dgn", null); var attachment = Session.Instance.GetActiveDgnModel().CreateDgnAttachment(moniker, "default"); // open reference props dialog Session.Instance.EnqueueKeyin("reference properties " + attachment.AttachFileName);
But nothing happens
Is the keyin correct or who can I open the attachments prop window (without showing the open file dialog)?
Thanks
Hi Dennis,
be aware this is general Developers and Programming Forum. I recommend to move your question to proper specialized forum (e.g. MicroStation Programming Forum). To move existing post, use More > Move tool, available under your original post.
Also, please respect the best practices and specify exactly what product and version you use.
Dennis Geesen said:Im trying to show the reference properties dialog after adding programmatically an attachment to the active model.
It is not how MicroStation and MicroStation API works:
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Generally, Dennis idea should works, but unfortunately in MicroStation CE key-in “reference properties <file spec>“ doesn’t work (it worked at V8i).
So, instead of building own dialog, much better solution for the users should be resolving by Bentley #316261 Defect Report from Oct. 6 2015, see:
Connect - Reference properties keyin