- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Thank you very much for the support..i finally set parameters to my sketch and it works perfect...i did as you proposed i 3d mode...now i am going to write the cam files for my cnc machine. i have one more question i am using this code
Option Explicit
Sub WriteFile()
Dim Doc As Document
Set Doc = ThisApplication.ActiveDocument
Dim oParam As Parameters
Set oParam = ThisApplication.ActiveDocument.ComponentDefinition.Parameters
Dim UserParams As UserParameters
Set UserParams = oParam.UserParameters
Dim oLength As Parameters
Set oLength = oParam.UserParameters(Length)
Open "C:\Users\tso\Desktop\test.txt" For Output As #1 'Open file for output
Write #1, oParam.UserParameters = Length
Close #1 'Close file
End Sub
But as you imagine doesn't work..so i want to ask you how can i call the length value in my vba editor?