04-13-2020
06:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-13-2020
06:15 PM
@JelteDeJong wrote:named faces are attributes under the hood. try this vba code. just change the namedFace vaiable to what ever you named the face.
Dim namedFace As String
namedFace = "testFace"
Dim doc As PartDocument
Set doc = ThisApplication.ActiveDocument
Dim face As face
Set face = doc.AttributeManager.FindObjects(, , namedFace)(1)
Dim sketch As PlanarSketch
Set sketch = doc.ComponentDefinition.Sketches.Add(face)
I played around and when I changed it liked below, it worked.
Dim testFace As String
testFace = "WebIntFace01"
I am going to try to draw something and then add couple of more features and I might be bugging you again for more help. Thanks for the help so far.
best regards,
Sam