math operations in relations
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
math operations in relations

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





Posted: Thu Nov 11, 2004 5:07 pm    Post subject: math operations in relations Reply with quote

how do you insert math symbols (cos tan pi etc) into a relation?

how do you turn an absolute number into an integer by rounding? (Required
for instance to calculate the number of instances of a pattern).

example, number of instances of a rotational pattern:

p1=(d2*pi)/d3

where

p1 = number of instances
d2 = pitch diameter
d3 = circumferential pitch of instance

Back to top
dakeb
Guest





Posted: Thu Nov 11, 2004 5:54 pm    Post subject: Re: math operations in relations Reply with quote

From Rod Giles:-



Dear David,

Relations editor recognises the following mathematical constants:

pi



Relations editor recognises the following mathematical, logical and internal

functions (Wildfire 2.0):

+

-

/

*

^

abs

acos

asin

atan

atan2

cable_len

ceil

comparegraphs

cos

cosh

eang

ecoordx

ecoordy

edist

elen

evalgraph

exists

exp

extract

false

floor

if

itos

ln

log

lookup_inst

massprop_param

material_param

max

min

mp_assigned_mass

mp_cg_x

mp_cg_y

mp_cg_z

mp_mass

mp_surf_area

mp_volume

no

rel_model_name

rel_model_type

search

sim_load_value

sim_mc_value

sim_shell_thickness

sin

sinh

smt_def_bend_rad

smt_thickness

sqrt

string_length

tan

tanh

trajpar

trajpar_of_pnt

true

yes

Click on the function button to see a list. If you're working on 2001 you

need to apply the following config options:

new_relation_ui yes

new_parameter_ui yes

I make sure you have an integer number, use ceil (ceiling function) or floor

(floor function), depending on whether you what 1 more or 1 less, e.g. if

your equation resulted in p1 = 3.26, then floor(3.26) = 3, ceil(3.26) = 4.

Adjust the formula,

p1=ceil((d2*pi)/d3)

p1=floor((d2*pi)/d3)

according to your requirement.

Hope this helps,

Rod Giles

Technical Director

Elite Consulting Ltd.

www.elite-consulting.com

Pro/Enginer Consultants, Trainers and Value Added Reseller
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
Contact Us
Powered by phpBB