question

Mike Mayer avatar image
0 Likes"
Mike Mayer asked yi Y answered

Background Error and no AutoCAD visible

I am unable to see an AutoCAD drawing background after bringing it into FlexSim. I save the model, with media embedded, and it's a large .fsm file so the AutoCAD drawing is in the model somewhere.

Upon import, I choose 0,0,0 origin.

I do see the long list of layers, however by default all layers should be "on", correct? That is to say, all have a light blue rectangle on the eye on far left side of the Layers scrolling list. I have not touched that list. There's all different colors of layers, which is how it is in AutoCAD.

I get these errors in System Console whenever trying to look at it or do something with it:

exception: FlexScript exception: Tracked Variable property 'valueString' at /FlexsimModelBackground>stats/state_current is not valid for non-categorical types. exception: FlexScript exception: Tracked Variable property 'valueString' at /FlexsimModelBackground>stats/state_current is not valid for non-categorical types. exception: FlexScript exception: Tracked Variable property 'valueString' at /FlexsimModelBackground>stats/state_current is not valid for non-categorical types.

When I go to the Tree, FlexsimModelBackground, Properties, and click on the binocular icon, all it shows on the 3D view is a 1x1x1 meter cube. I zoom way in, zoom way out, nothing is visible except the gray grid (and the empty yellow cube with colored cones when I click on binoculars again). Twirling the view underneath, nothing visible (thought I'd check in case the imported CAD drawing went below the surface, i.e., zero in Z).

A colleague who sits next to me CAN bring the same AutoCAD drawing into FlexSim (same version as mine - 2019.0.2). He can see the CAD drawing immediately in FlexSim (does not have to zoom in or out), and he does not get the errors noted above when doing things. We have the same hardware (Dell Precision 5520), Windows 10 Pro 64 bit, and 32GB RAM, same version of FlexSim, importing the same CAD file from a blank (new) FlexSim model. We also have the same graphics card.

I am able to bring-in a raster bitmap (*.bmp) screenshot of the AutoCAD layout, and it is visible, however I cannot bring in a CAD drawing. I used to be able to bring in AutoCAD drawings several versions ago.

I also have un-installed FlexSim and re-installed, same version. Cleaned-out any remaining FlexSim folders after the uninstall, and rebooted after the re-install. Same problem.

Thanks.

FlexSim 19.0.2
autocad backgrounddwg
5 |100000

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

Mike Mayer avatar image
1 Like"
Mike Mayer answered
@Joshua S

Thanks for your followup. As it turns out I was never able to import the desired AutoCAD drawing. It took about a week of investigation and it finally came down to there being some features in the AutoCAD drawing that were non-zero in the Z (vertical) direction (the drawing was given to the DES team by the plant - drawn years ago apparently so it's hard to say who had their fingers in it previously). In other words, the drawing had some 3D features in it which may have tripped-up the DWG import in FlexSim. Tried to remove (cleanup) the 3D features in the drawing using AutoCAD however that chowdered-up the layout drawing pretty badly (likely also due to my marginal AutoCAD skills). I also tried the AutoCAD "flatten" command, however that did not work either (presumably, it changes all Z values in the drawing to 0). So, I abandoned the DWG import effort (we tried DXF import too, same issues). Instead, I used the "plot" feature of AutoCAD to "print" a high-resolution PNG file bitmap in the same XY pixel proportions as the layout, using the "Window" capture in AutoCAD. So, let's say the plant floor layout was a drawing of something 123 meters wide x 45 meters deep (a 36.58% aspect ratio of 45/123). The bitmap I created was 10000 x 3658 to match the AutoCAD window capture proportions of 0,0 at lower left to 123,45 at upper right, which you can enter manually in the AutoCAD command line to get that rubber window to snap exactly. Why 10000 pixels in the X direction? Totally arbitrary, but, it makes the proportion math easier and also give a nice crisp floor layout that FlexSim can still render as a 3D floor image with surprisingly good performance, and still be able to easily read text like names of things, dimensions, callouts, etc. within in the drawing when zooming-in. On the FlexSim side (the model is in meters), I simply imported that large bitmap and gave it an X, Y, Z size of 123, 45, 0 and an origin on 0, 0, 0. Another trick I used to verify I got the measurements and proportions right, was to plop-down a Processor on the floor and make it the same dimensions as something dimensioned on the floor (like a machine width), and if they match in the FlexSim orthographic top view, that means I got it right. The "View > Measure/Convert" tool also proved quite useful for interatively verifying that the bitmap floor image dimensions/proportions matched the model space - particularly for things like radii and diameters.

5 |100000

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

yi Y avatar image
0 Likes"
yi Y answered

Maybe you can try to change the setting of OpenGL Context as link below: https://answers.flexsim.com/questions/46054/autocad-background-is-not-visible-or-visible-accor.html

5 |100000

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

Steven Hamoen avatar image
0 Likes"
Steven Hamoen answered Ben Wilson commented

@Mike Mayer Maybe a silly question but do you guys also have the same graphics card driver?

· 7
5 |100000

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