OLE Automation works like a charm

Started by Juergen, September 25, 2014, 05:15:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Juergen

Currently I am working on a tool supporting accident scene diagrams including image rectification and vehicle images with scale.
Actually I can confirm that the V21 dll is fine for V22 and V23 without any problems. And I am curious testing with V24 soon.

There is an issue with the snap square, which can toogled with F10. Macro recorder says SnapPreviewMode. I am not able to find
the appropriate entry in the dll - and I want to avoid a work around with a macro.

I would be happy with an advice how to toogle the snap square with a dll call.

Kind regards,

Juergen

BTW: Image processing (rotate etc) within DesignCad is poor slow, even with a HP Z820 Workstation.
Did someone notice some progress on this topic with V24? Is RedSDK active with images or just fine for
3D tasks?

DrollTroll

Sorry, I don't think there's currently a method to enable/disable the snap preview with Automation. For that matter, I'm not entirely certain that you can specifically turn it off or on as desired in a macro --  there may just be the toggle command. Let me look into it.

RedSDK Mode has not yet been thoroughly tested with OLE Automation, so proceed with caution if you go there.
25 years with DesignCAD

Juergen

#2
Hi DrollTroll,

I guess you are right. The OLE reference doesn't know the term 'toggle' at all.
I solved it with an advice in the control dialog.

Kind regards,

Juergen

Juergen

#3
I discovered that SYS(48) is good for toggling.
And SetSysVal does a good job, there is no need to call a macro.

Kind regards,

Juergen