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


@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