- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I saw a good example of coding of mate modmachine site
Dim asmDoc As AssemblyDocument
asmDoc = inv_App.ActiveDocument
Dim asmDef As AssemblyComponentDefinition
asmDef = asmDoc.ComponentDefinition
Dim face1 As Face
face1 = inv_App.CommandManager.Pick( _
SelectionFilterEnum.kPartFacePlanarFilter, _
"1. Yüzeyi Seçin...")
Dim face2 As Face
face2 = inv_App.CommandManager.Pick( _
SelectionFilterEnum.kPartFacePlanarFilter, _
"2. Yüzeyi Seçin...")
Dim mate As MateConstraint
mate = asmDef.Constraints.AddMateConstraint(face1, face2, 0)
Perfect sample but I need to mate together lots of movement chain parts. I used I-Mate. I-mate make me faster but I need to mate all this parts with the VB.NET API code.
I want to give a name to mate-point of each part. Then I want to make mate with the name of the mate-points. Is this possible?
With above code I need to pick a face by user input every time. This is not so easy. My Code should be below:
Create Inner Chain,
Cretae Outer Chain,
Mate PointInnerX of the Inner chain with the point PointOuterXX of the outer chain. I do not want to pick a mate point everytime?!...
mate = asmDef.Constraints.AddMateConstraint(PointOneNameOfTheFirstPart, PointOneNameOfTheSeconPart, 0)
Is the below code like possible?...
Regards,
Mucip:)
Solved! Go to Solution.
