dogarila
Mechanical
- Oct 28, 2001
- 594
How do I set the material for a part in SW05 using Visual Basic? I am using:
but it doesn't work. I don't get any error just the part does not update.
Another question:
When I declare variables like
i get an error saying that user type is not defined. It works if I use Object instead of SldWorks.PartDoc.
Thanx for help
Andrew
Code:
Part.SetMaterialPropertyName "sldmaterials.sldmat ", "HRS"
but it doesn't work. I don't get any error just the part does not update.
Another question:
When I declare variables like
Code:
Dim Part as SldWorks.PartDoc
i get an error saying that user type is not defined. It works if I use Object instead of SldWorks.PartDoc.
Thanx for help
Andrew