04-13-2020
12:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-13-2020
12:08 PM
@DRoam thanks for the reply.
I have been practicing iLogic for few weeks now and I have done quite few rules (a lot to courtesy of your your help and help of @WCrihfield and other senior members of forum) to automate my work and I have been successful with that.
Problem is when I try to put all together in form, iLogic forms are really basic. Our IT head office has refused to install VS.Net and I thought I will just play around with VBA and see how it goes. Through object browser I can see those face names in VBA editor but it is really deep in nodes. below is the code.
Public Sub AddSketch()
Dim oCompDef As PartComponentDefinition
Set oCompDef = ThisApplication.ActiveDocument.ComponentDefinition
Dim oFace As Face
Set oFace = oCompDef.AttributeSets.Item(1).Name("nameFace")
Dim oSketch As PlanarSketch
Set oSketch = oCompDef.Sketches.Add(oFace, True)
oSketch.Name = "My New Sketch"
End Sub
The error it is showing is:
Thanks in advance,
Regards,
Sam