ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 01-22-2013
Todd Benanzer Todd Benanzer is offline
Flexsim User
 
Join Date: Mar 2010
Location: Champaign, IL
Posts: 6
Downloads: 3
Uploads: 0
Thanks: 2
Thanked 1 Time in 1 Post
Rep Power: 0
Todd Benanzer is on a distinguished road
Default nodefunction parameter quantity

I'm having a problem getting an accurate parameter count when using the parqty function when called by a nodefunction.

For example, here's my flexscript inside a node:
Code:
int n_params = parqty();
pf(n_params);pr();
and here's my script to call this command:
Code:
treenode current_node = node("/VisualTool3",model());
treenode function_node = node(">variables/examplefn",current_node);
nodefunction(function_node, NULL, NULL, NULL);
This prints a value of 2 instead of 3, the number of parameters. I'm not sure if the bug is in the software or am I the issue here.

Thanks in advance.
The Following User Says Thank You to Todd Benanzer For This Useful Post:
Phil BoBo (03-06-2013)
  #2  
Old 01-22-2013
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default

This looks like it is a bug in the software. I'll add it to the development list.

Last edited by Phil BoBo; 01-23-2013 at 12:30 PM.
The Following User Says Thank You to Phil BoBo For This Useful Post:
Todd Benanzer (01-23-2013)


Thread Thread Starter Forum Replies Last Post
Set Combiner Pack quantity by Globalvariabel? Peppino Q&A 6 05-21-2012 06:34 AM
report() command - which nodefunction is executed Jens Mühlheimer Q&A 2 05-21-2012 12:05 AM
about nodefunction Dane Lee Q&A 10 03-15-2012 03:42 AM
TASKTYPE NODEFUNCTION juan alberto Q&A 1 04-16-2010 03:19 AM
about "no select" and "show parameter window from side bar" qin tian Gripes and Goodies 3 03-21-2008 08:10 AM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.