Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Frederick_Law
in reply to: DME_Ltd

Intellisense can't see "PlanarSketch":

ILogic-intelli-01.jpg

 

Try to code like this:

Dim a As AssemblyDocument
a = TryCast(ThisDoc.Document, AssemblyDocument)
Dim o As Inventor.PlanarSketches = a.ComponentDefinition.Sketches
Logger.Debug(o.Count.ToString)