News:

Interested in some really terrific mobile apps? Visit www.turboapps.com for details.

Main Menu

Turbo PDF

Started by Alan Ward, October 02, 2022, 02:58:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Alan Ward

Does anybody know if you can control Turbo PDF through OLE Automation please ?

nikkipollard

not sure, you might have more luck with an open source pdf editor.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Alan Ward

Thank you for your reply.
Now I have cracked controlling Turbocad through OLE I was hoping to use Turbo PDF in the same manner.

I haven't had a reply from IMSI.

Jeff_in_90620

Quote from: Alan Ward on October 04, 2022, 04:18:47 AMNow I have cracked controlling Turbocad through OLE

I thought OLE was no longer supported by TurboCAD.  What are you doing to control it?


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

nikkipollard

Quote from: Jeff_in_90620 on October 04, 2022, 09:31:44 AM
Quote from: Alan Ward on October 04, 2022, 04:18:47 AMNow I have cracked controlling Turbocad through OLE

I thought OLE was no longer supported by TurboCAD.  What are you doing to control it?


Jeff

Maybe "not supported" just means they aren't updating it anymore. imsigx-xx.dll is still shipped with Turbocad.
It still works. The sdk documentation only gives examples on how to use those libraries. So even though they do have an alternate more modern library. It is really difficult to use - because there are no examples on how to use the methods inside them. Some of them are the same but not quite.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Alan Ward

#5
I guess the Syntax is different in each programming language but for me

CAD=new oleautoclient("Turbocad.application.4")
DR=CAD.Activedrawing
GR=DR.Graphics
a=GR.addlinesingle(0,0,0,0,100,0)
b=a.properties.Item("PenColor")
b.value=255
a.draw()

I use Visual Dbase to program from as I have used it or 20+ years.

In Dbase I can then

Inspect(a) to see its properties