hole feature set to get xyz dia and height

hole feature set to get xyz dia and height

malinsAM3TM
Enthusiast Enthusiast
628 Views
3 Replies
Message 1 of 4

hole feature set to get xyz dia and height

malinsAM3TM
Enthusiast
Enthusiast

HI !

can this be modify to get additional two columns for featureset height and diameter.

 

 

0 Likes
629 Views
3 Replies
Replies (3)
Message 2 of 4

yd_kwon
Advocate
Advocate

Try This.

There is no need to set up blocks to find points.

If you are curious, check it with macro debug

ENTITY $fset = INPUT ENTITY FEATURESET "Select the Featureset to output positions from"
string $txtCheck = ""
FOREACH $feat IN components($fset) {
	EDIT FEATURESET $fset DESELECT ALL
      IF feat.type == 'hole' {
		EDIT FEATURESET $fset SELECT $feat
		//txt Initialize
		$txtCheck = ""
		
		//Hole Center Point
		$txtCheck = $txtCheck + "Point X" +$feat.Point[0] + " "
		$txtCheck = $txtCheck + "Y" +$feat.Point[1] + " "
		$txtCheck = $txtCheck + "Z" +$feat.Point[2] + crlf
		
		//Hole feature
		$txtCheck = $txtCheck + "Dia" +$feat.Diameter + " "
		$txtCheck = $txtCheck + "Depth" + $feat.Depth + " "
		$txtCheck = $txtCheck + "Bottom" + $feat.Bottom + " "
		$txtCheck = $txtCheck + "Draft" + $feat.Draft + crlf
		
		//Text check
		Message info $txtCheck
	  }
}  

 

CAM-Fusion 360/Inventor
CAD-Fusion 360/Inventor
Before PowerMILL
0 Likes
Message 3 of 4

malinsAM3TM
Enthusiast
Enthusiast

Sir Thanks for reply

The macro which u sent is showing mesage is on screen which is not solving our purpose.

Sir I need out put in excel file as below

1. X LOCATION

2. Y LOCATION

3. START Z

4. END Z

5. TOTAL HEIGHT

AND

6. DIAMETER

 

Sir

the attched macro is  giving output for 4 points

need to add totla height and diamater in same macro

please refer attached file for referance

 

Thank you

 

0 Likes
Message 4 of 4

yd_kwon
Advocate
Advocate

I didn't give all the answers.
However, it is possible enough if you modify your macro based on the code I posted.

 

Cap 2022-06-09 15-18-48-359.png

CAM-Fusion 360/Inventor
CAD-Fusion 360/Inventor
Before PowerMILL
0 Likes