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
Downloads

Tips and Tricks Share helpful modeling ideas

  #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: 490
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
The Following 5 Users Say Thank You to Brandon Peterson For This Useful Post:
syseo (05-10-2008)


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.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.