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 > Tips and Tricks
FAQ Downloads Calendar Search Mark Forums Read

Tips and Tricks Share helpful modeling ideas

Reply
 
Thread Tools Display Modes
  #1  
Old 05-09-2008
Brandon Peterson's Avatar
Brandon Peterson Brandon Peterson is offline
The Flexsim Consultant
 
Join Date: Jul 2007
Location: Salt Lake City, Utah
Posts: 382
Downloads: 29
Uploads: 6
Thanks: 192
Thanked 516 Times in 235 Posts
Rep Power: 489
Brandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant future
Default Triangle and Text Demo

Guys,

In C++ I had written some code that would put either a triangle or the name of the object above the center of the object. The triangle or name would scale so that no matter how much you zoomed in or out the triangle or name would stay the same size in the view window. Cliff has requested that I get this brought into Flexscript and posted here on the forum.

The attached model contains two sphere objects that have this draw code. You can change whether the spheres draw nothing, their name, or a triangle by changing the DrawType label to 0, 1, or 2 respectively. There are four other labels on each item that you can change to adjust the sizes of the name or triangle in the different views. To change the color of the triangle or text just change the color of the sphere object.

If you change the code to look to a global variable to determine the draw type this code can be mighty useful for locating objects in your model when the objects are very small in the view.

Good Luck,
Brandon
Attached Files
File Type: zip Triangle and Text Demo.zip (63.1 KB, 434 views)
__________________
thats not normal.

Last edited by Brandon Peterson; 05-09-2008 at 10:15 AM. Reason: Additional information
Reply With Quote
The Following 5 Users Say Thank You to Brandon Peterson For This Useful Post:
arunkrmahadeva (10-08-2014), Cliff King (05-11-2008), Dustin Derrick (05-09-2008), qin tian (05-11-2008), syseo (05-10-2008)
Reply

Thread Tools
Display Modes

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 On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mining Demo models Brandon Peterson Q&A 7 01-16-2012 07:04 PM
How to display dynamic text next to an object Cliff King Tips and Tricks 4 11-11-2010 01:45 PM
Live Web Demo Bill Nordgren Marketing and Sales Information 0 03-30-2008 10:43 PM
How to display 3D text/shapes in a static position regardless of the view angle. Regan Blackett Tips and Tricks 0 08-03-2007 10:51 AM


All times are GMT -6. The time now is 02:13 PM.


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