Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Its working so far but if i turn a featureset after it was created it uses the centerpoint when it was made.
i could go with global workplane but than i have to pause the macro to select the correct plane xy or what it is after import the Model.
Is there a way to get the correct cordinates with wp.point?
BOOL $nope = false
FOREACH $feat IN $Gewindefsets {
FOREACH $ft IN components($feat) {
IF $ft.Description == $M10 {
$nope = true
BREAK
}
IF $ft.Description == $M12 {
$nope = true
BREAK
}
}
}
IF $nope == true {
//Punkte für Muster raussuchen M10
STRING LIST pointsM10 = {}
STRING LIST pointsM12 = {}
FOREACH $feat IN $Gewindefsets {
FOREACH $ft IN components($feat) {
IF $ft.Description == $M10 {
STRING pM10 = $ft.wppoint.x + ' ' + $ft.wppoint.y + ' ' + $ft.wppoint.z
IF NOT member($pointsM10, $pM10) {
INT k = add_last($pointsM10, $pM10)
}
}
IF $ft.Description == $M12 {
STRING pM12 = $ft.wppoint.x + ' ' + $ft.wppoint.y + ' ' + $ft.wppoint.z
IF NOT member($pointsM12, $pM12) {
INT g = add_last($pointsM12, $pM12)
}
}
}
}
//Erstellen von Muster für Fase M10
IF NOT size($pointsM10) == 0 {
STATUS EDITING_PLANE XY
CREATE PATTERN ;
EDIT PATTERN ; CURVEEDITOR NOGUI START
CURVEEDITOR MODE CIRCLE
CURVEEDITOR CIRCLE RADIUS $FaseM10
FOREACH pM10 IN $pointsM10 {
STRING mycmd = 'MODE COORDINPUT COORDINATES ' + $pM10
DOCOMMAND $mycmd
}
CURVEEDITOR FINISH ACCEPT YES
Solved! Go to Solution.