CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > Modules

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-25-2002, 02:20 PM
rr79 rr79 is offline
Member
 
Join Date: Oct 2002
Location: Huntington Beach
Posts: 63
dynamic asseymblies

is if then else statements the only expression that one can use in
the expression value?? Has anyone played with this??
Reply With Quote
  #2  
Old 10-28-2002, 12:44 AM
Mario Mario is offline
Registered User
 
Join Date: Oct 2002
Location: Boeblingen, Germany
Posts: 17
Hallo,

The if-then-else statement is the only structural statement that can be used for expressions.
However using mathematical expressions and other relations allows a wide range of possibilties to express desired behavior.

What exactly are you looking for?

Mario
Reply With Quote
  #3  
Old 11-19-2002, 03:14 PM
chris's Avatar
chris chris is offline
Registered User
 
Join Date: Nov 2002
Location: Fort Collins, CO
Posts: 29
using conditional operators (<, >, <=, >=, etc) in combination with if-then-else can give you several posibilities, but also logical relations can provide a lot of possibilities.

here's an example:

vnum1=0 (a variable number that will be annimated from 0-20)
vlog1= vnum1 >= 5
vlog2= vnum1 >= 10
vlog3= vnum1 >= 15

each one of the above logical relations (vlogx) is checking if vnum1 is greater than or equal to it's corresponding number. If it is not, vlogx=0 or false. If it is, vlogx=1 or true)

(now put thes logical relations in if statement for an angle relation (ang1))

if vlog1
then 45
else
if vlog2
then 90
else
if vlog3
then 135
else 180

then you simply annimate vnum1 and watch the angle change as vnum1 changes.
Reply With Quote
  #4  
Old 11-19-2002, 11:14 PM
Mario Mario is offline
Registered User
 
Join Date: Oct 2002
Location: Boeblingen, Germany
Posts: 17
Hi chris,

why would you use the variables vlogx instead of using the logical expression itself ?

Mario
Reply With Quote
  #5  
Old 11-22-2002, 02:32 PM
chris's Avatar
chris chris is offline
Registered User
 
Join Date: Nov 2002
Location: Fort Collins, CO
Posts: 29
This was just an example, you could use logical expressions here also.

chris
__________________
Chris P. Whitman
Senior Technical Sales Specialist
PTC/CoCreate


Last edited by chris; 05-21-2003 at 02:57 PM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:45 AM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.