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 12-14-2012
Christian Norregaard Christian Norregaard is offline
Flexsim User
 
Join Date: Oct 2011
Posts: 59
Downloads: 13
Uploads: 0
Thanks: 33
Thanked 14 Times in 9 Posts
Rep Power: 115
Christian Norregaard will become famous soon enough
Default The Model Background Drawing Wizard

Hi all.

I am working on a project with multiple buildings, and I would like to import floor plans for them all.

My problem is as follows:
I can use the Model Background Drawing Wizard to create a background based on a CAD drawing (.dwg). With this wizard, I can switch layer visibility on and off. I can seemingly only have one background, though, so I tried importing my .dwg files through the Visual Tool options. When I use a Visual Tool, I don't get the options of switching layers on and off.

Is there a clever way of launching the Background Wizard for ordinary Visual Tools?

I added a screenshot of a .dwg file imported through the VT options and one imported and edited through the wizard.
Attached Thumbnails
Click image for larger version
Name:	ScreenHunter_02 Dec. 14 11.19.jpg
Views:	135
Size:	261.2 KB
ID:	2010  
  #2  
Old 12-14-2012
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 773
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

You could try setting your visual tool as so() and then running this in a script:

createview("VIEW:/pages/tools/BackgroundWizard", nodetopath(so()), "");

Edit: Corrected mistake caught by Christian- thanks!

Last edited by Jason Lightfoot; 12-15-2012 at 05:02 AM.
The Following 2 Users Say Thank You to Jason Lightfoot For This Useful Post:
Jörg Vogel (12-14-2012)
  #3  
Old 12-14-2012
Christian Norregaard Christian Norregaard is offline
Flexsim User
 
Join Date: Oct 2011
Posts: 59
Downloads: 13
Uploads: 0
Thanks: 33
Thanked 14 Times in 9 Posts
Rep Power: 115
Christian Norregaard will become famous soon enough
Default

Jason, You are the man!

Best regards
Christian
  #4  
Old 12-14-2012
Christian Norregaard Christian Norregaard is offline
Flexsim User
 
Join Date: Oct 2011
Posts: 59
Downloads: 13
Uploads: 0
Thanks: 33
Thanked 14 Times in 9 Posts
Rep Power: 115
Christian Norregaard will become famous soon enough
Default

Instead of so() as the second argument, the createview function wants a string.

I used "MAIN:/project/model/VisualTool1", and it worked like a charm.

Thanks again.
The Following User Says Thank You to Christian Norregaard For This Useful Post:
Jason Lightfoot (12-15-2012)
  #5  
Old 12-14-2012
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 773
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

D'oh! You're right of course - I didn't test it. You can use nodetopath(so()) too.
  #6  
Old 12-15-2012
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 773
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

Even better is the button on the bottom of the parameters page of the Visual Tool "Open The Model Background Wizard For This Object".
The Following 4 Users Say Thank You to Jason Lightfoot For This Useful Post:
Steven Hamoen (12-17-2012)
  #7  
Old 12-17-2012
Christian Norregaard Christian Norregaard is offline
Flexsim User
 
Join Date: Oct 2011
Posts: 59
Downloads: 13
Uploads: 0
Thanks: 33
Thanked 14 Times in 9 Posts
Rep Power: 115
Christian Norregaard will become famous soon enough
Default

I have reached a point where I may have to admit to having overlooked that little detail.

From now on, I believe I will use that button.

Thanks again, Jason.


Thread Thread Starter Forum Replies Last Post
Could not see the background in Berth Planner David Chan Container Terminal (CT) Library 2 09-24-2012 08:59 PM
Importing .dxf and shape files as background objects Albert Munoz Q&A 1 07-22-2011 12:19 AM
Capturing a 2D picture/drawing of a model. Kenny Macleod Q&A 0 02-16-2011 06:41 PM
CAD Drawing Imported as Background B Whitley Container Terminal (CT) Library 8 10-09-2009 12:24 PM
Loading a large map as a background Kenny Macleod Q&A 6 02-09-2009 03:46 PM


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.