Cloud Hidden Posted August 18, 2003 Share Posted August 18, 2003 2-part question: 1. I'm creating a composite object in a PIO. I want to calc the area and perimeter and output it to the OIP in the same way that many other objects list area in the OIP. Don't know how to output that stuff. 2. Perim and Area require search criteria as parameters, rather than a handle. What's the typical strategy for creating something that can be uniquely searched. If I use the PIO multiple times, I don't want the Perim of the multiple occurrences...I want each one separately. Thanks for any ideas. Quote Link to comment
Alexandre Villares Posted August 19, 2003 Share Posted August 19, 2003 1. Try IF GetCustomObjectInfo(objectName, objectHand, recordHand, wallHand) THEN SetRField(objectHand, Getname(recordHand),'Area',Num2Str(1,A)); {'Area' is the paramenter name, A is a Real number} 2. Try FUNCTION ??HArea (?h:HANDLE?) :REAL ; Description: Function HArea returns the area of the referenced object. Quote Link to comment
Cloud Hidden Posted August 19, 2003 Author Share Posted August 19, 2003 That is very cool. I'm indebted to you. Thanks. I kept looking for write-only fields, but no problem that these are read/write--it's not like the script has to read them. Works great. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.