3D Framework
Overview
Framework Customer Story
CIMdata e-Book
CAD Utilities
Validate
Revision
View/Convert
Customer Stories
CAD Data Risks Whitepaper
Focus: Aerospace
KeyCreator CAD
Meet KeyCreator
What Is Direct Modeling
KeyCreator Reviews
KeyCreator Customer Stories
Focus: Drafting
Schools & Students
CKD Viewer
About
Company
International Resellers
All Customer Stories
Referral Program
Partners
News
Blog
Webinars
Contact
Store
Revision/Validate
View/Convert
KeyCreator CAD
Shopping Cart
Support
Login
Software
Users
Submit Request
Remote Assist
Forum
Kubotek University
Help
Kubotek Forum
KeyCreator CAD & CKD Viewer
Technical discussion of CAD/CAM and integrated partner products
Subscribe to post
Soli
-
(3/15/2021 4:46:01 AM)
RE:Verify Mass Properties
This macro returns the weight as a string:
----------------------------------------
clear hEnt
HENTITY hEnt
:start
int nSelFlag = 0
Int nSelParent = 1
Int bSelRefEnts = 0
Int bAccept = 1
bActiveInstFlag = 1
GetEnt "Select entity", hEnt, , nSelFlag, nSelParent, bSelRefEnts, , bAccept, bActiveInstFlag
if (@key == -3)
exit
double weight[1]
VerifyMassProperties hEnt , , , , , 1, , weight
notestate
VerifyMassProperties hEnt , , , , , 1, , weight
notestate
weight[0] = weight[0]/1000
clear $weight
string $weight
sprint $weight , "%.2f" , weight[0]
pause "WEIGHT IS %s KG" , $weight
goto start
---------------------------------------------------------------------------
Ram,
Thank you again.
E-mail:
Given e-mail is not valid
Please enter an e-mail. E-mail is required.
Login