Checking OLEobcject exists

Checking OLEobcject exists

Anonymous
Not applicable
371 Views
1 Reply
Message 1 of 2

Checking OLEobcject exists

Anonymous
Not applicable

Hi,

I writed macro in vba which generating pdf and dwg file and next add link to inventor as OLE Object. But I have problem in situation when file is existing in OLE Object list. When I'm updating pdf and dwg files by clicking "generate PDF & DWG file", program update files and unfortunelly

add second the same OLE Object on list. As a result I have on list file.pdf; file.pdf.

 

I would like to create checking function:

If OLEObject exists do nothing else add OLEObject on list.

 

But i don't now how.

 

Please help me 😉

 

 

0 Likes
372 Views
1 Reply
Reply (1)
Message 2 of 2

MechMachineMan
Advisor
Advisor

Using the API/Programming Help as it is intended is a great start here.

 

http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-5A4B511C-6DFF-4C01-B227-DD930342AEEA


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes