question

Thillai avatar image
0 Likes"
Thillai asked Jeanette F commented

Boundary around object

I am trying to add a visual to the Object similar to having the boundary ( yellow or orange tape around the pallet or Working area ), so I need some help. or is it possible in flexsim


1711742878881.jpeg

FlexSim 22.2.0
visuals
1711742878881.jpeg (65.2 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Thillai, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Thillai commented
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Thillai avatar image Thillai commented ·
Thanks for the update; I am new to Flexsim. Is it ok to give me a simple sample model
0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Thillai commented ·

Here's an example code that draws a rectangle around an object when placed in its On Draw trigger. The last the parameters in the drawrectangle() command are the RGB color values (0-255). The values in the code below produce a golden-ish yellow similar to your picture.

fglDisable(GL_LIGHTING);
drawtomodelscale(current); double distFromEdge = 0.5; double width = 0.1; // Upper edge drawrectangle(-distFromEdge - width, distFromEdge + width, 0, current.size.x + 2*(distFromEdge + width), width, 0, 0, 0, 245, 220, 15); // Left edge drawrectangle(-distFromEdge, distFromEdge + width, 0, current.size.y + 2*(distFromEdge + width), width, 0, 0, -90, 245, 220, 15); // Lower edge drawrectangle(-distFromEdge - width, -current.size.y - distFromEdge, 0, current.size.x + 2*(distFromEdge + width), width, 0, 0, 0, 245, 220, 15); // Right edge drawrectangle(current.size.x + distFromEdge + width, distFromEdge + width, 0, current.size.y + 2*(distFromEdge + width), width, 0, 0, -90, 245, 220, 15); fglEnable(GL_LIGHTING);
3 Likes 3 ·
Thillai avatar image Thillai Felix Möhlmann commented ·
Thanks
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.