
Not applicable
08-13-2019
01:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I'm trying to set automaticly the Material in a mirrored sheetmetalpart. I whrote a VBA-code like:
...
Dim orefMat As String
orefMat = orefdoc.ComponentDefinition.Material.Name
Dim oMaterial As Material
Set oMaterial = odoc.Materials.Item(orefMat)
ocompdef.Material = oMaterial
this code worked. Now the next step is coding in vb.net and VisualStudio 2017.
I've tried the same method "ocompdef.Material = oMaterial" but in VS this doesen't work. In debugging-mode I got the message: Member not not found.
Thanks for helping
Greatings
Steffen
Solved! Go to Solution.