decimal places in parameters
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
decimal places in parameters

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Pro/Engineer
Author Message
Guest






Posted: Wed Jan 05, 2005 10:54 pm    Post subject: decimal places in parameters Reply with quote

i have mass parameters calculated as follows:

/*
/* CALCULATE THE MASS_* VALUES
/*
mass_kg = mp_mass("")
mass_lb = mass_kg / .4536
/*
/* END MASS_* RELATIONS


they result in 2 decimal place numbers. how do i change the number of
decimal places shown?

thanks

Back to top
Ben Loosli
Guest





Posted: Thu Jan 06, 2005 4:08 am    Post subject: Re: decimal places in parameters Reply with quote

Don't know that BUT in WF, you should be using pro_mp_mass, not mp_mass("").


--
Ben Loosli
<selmra@comcast.net> wrote in message
news:1104947687.318740.4590@z14g2000cwz.googlegroups.com...
Quote:
i have mass parameters calculated as follows:

/*
/* CALCULATE THE MASS_* VALUES
/*
mass_kg = mp_mass("")
mass_lb = mass_kg / .4536
/*
/* END MASS_* RELATIONS


they result in 2 decimal place numbers. how do i change the number of
decimal places shown?

thanks
Back to top
David Janes
Guest





Posted: Thu Jan 06, 2005 4:32 am    Post subject: Re: decimal places in parameters Reply with quote

: <selmra@comcast.net> wrote
: i have mass parameters calculated as follows:
:
: /*
: /* CALCULATE THE MASS_* VALUES
: /*
: mass_kg = mp_mass("")
: mass_lb = mass_kg / .4536
: /*
: /* END MASS_* RELATIONS
:
:
: they result in 2 decimal place numbers. how do i change the number of
: decimal places shown?
:
Write the parameter in a note as &mass_kg[.2] The decimal point and number in
brackets tells Pro/e how many decimal places to display. Don't remember if it
truncates or rounds.

David Janes

Back to top
Guest






Posted: Thu Jan 06, 2005 9:37 pm    Post subject: Re: decimal places in parameters Reply with quote

this doesn't change the display of a model tree column displaying the
parameter
(I don't think!)
Back to top
David Janes
Guest





Posted: Fri Jan 07, 2005 6:05 am    Post subject: Re: decimal places in parameters Reply with quote

: <selmra@comcast.net> wrote
: this doesn't change the display of a model tree column displaying the
: parameter
: (I don't think!)
:
Yeah, Pro/e's goofy that way. It assumes that, if you'd wanted the parameter to
change, you'd have changed the model in some way that would have effected the
mass. So, do what it wants (or something like it, such as) suppress a feature and
resume it. This should cause a recalc of mass in your relation, and so, in the
drawing note that uses that parameter.

If this doesn't work, I've got another method that's less goofy.

David Janes
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Pro/Engineer All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB