Message 1 of 4
Determinde the model parameter name

Not applicable
11-26-2007
08:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I used this code to make a new workplane which is offset from the XZ plane
by a distance of .2
How to determine what model parameter (name) of .2?
Thx,
On Error Resume Next
Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oOriginWP As WorkPlane
Set oOriginWP = oDoc.ComponentDefinition.WorkPlanes.Item("YZ Plane")
Dim oNewWP As WorkPlane
Set oNewWP = oDoc.ComponentDefinition.WorkPlanes.Item("New WorkPlane")
If Err Then
Err.Clear
Else
Set oNewWP =
oDoc.ComponentDefinition.WorkPlanes.AddByPlaneAndOffset(oOriginWP, 0.2,
False)
oNewWP.Name = "New WorkPlane"
End If
--
www.CVAengineering.com
IV11 Pro. sp2 and IV2008 Pro. sp1
Vault 2008 sp1
Window XP Pro sp2
Pentium 3.2 Ghz, 3.0 GB of RAM
NVIDIA FX 3400 91.85
SpacePilot V 3.3.6
by a distance of .2
How to determine what model parameter (name) of .2?
Thx,
On Error Resume Next
Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oOriginWP As WorkPlane
Set oOriginWP = oDoc.ComponentDefinition.WorkPlanes.Item("YZ Plane")
Dim oNewWP As WorkPlane
Set oNewWP = oDoc.ComponentDefinition.WorkPlanes.Item("New WorkPlane")
If Err Then
Err.Clear
Else
Set oNewWP =
oDoc.ComponentDefinition.WorkPlanes.AddByPlaneAndOffset(oOriginWP, 0.2,
False)
oNewWP.Name = "New WorkPlane"
End If
--
www.CVAengineering.com
IV11 Pro. sp2 and IV2008 Pro. sp1
Vault 2008 sp1
Window XP Pro sp2
Pentium 3.2 Ghz, 3.0 GB of RAM
NVIDIA FX 3400 91.85
SpacePilot V 3.3.6