Skip to content
  • Categories
Collapse
Solibri Society Forum
  1. Home
  2. General Discussion
  3. Visualization displays differently after re-opening smc

Visualization displays differently after re-opening smc

Scheduled Pinned Locked Moved Unsolved General Discussion
4 Posts 2 Posters 234 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    HieuVH-FPT
    wrote last edited by
    #1

    Hi @Solibrians
    I’m experiencing with a visualization issue.
    After running a rule, the dimensions are visible through the walls in the 3D view.6c589e97-da12-49da-9a79-6745bddc9b10-image.png
    However, after I save and re-open the SMC, the dimensions are no longer visible.
    73e826e1-cc34-4baf-88b9-23aa3a2711cd-image.png

    Please help investigate
    Thanks

    MattiM 1 Reply Last reply
    0
    • MattiM Offline
      MattiM Offline
      Matti Solibrians
      replied to HieuVH-FPT last edited by
      #2

      @HieuVH-FPT said in Visualization displays differently after re-opening smc:

      However, after I save and re-open the SMC, the dimensions are no longer visible.

      Which version of Solibri you are using?

      Have this setting on:
      a230b2c3-7036-4769-aaa7-58497843dc61-image.png

      Could you share a code snipped where the dimension is created?

      1 Reply Last reply
      0
      • H Offline
        H Offline
        HieuVH-FPT
        wrote last edited by
        #3

        Hi @Matti
        I’m using newest version 26.4.1 and that setting is on.
        Due to specific client requirements, I had to customize the dimensions. Therefore, the “dimension” in the code is actually created using visualization.Lines.create() instead of VisualizationItem.createDimension()

        MattiM 1 Reply Last reply
        0
        • MattiM Offline
          MattiM Offline
          Matti Solibrians
          replied to HieuVH-FPT last edited by
          #4

          @HieuVH-FPT said in Visualization displays differently after re-opening smc:

          Due to specific client requirements, I had to customize the dimensions. Therefore, the “dimension” in the code is actually created using visualization.Lines.create() instead of VisualizationItem.createDimension()

          With following code you can set your custom VisualizationItem as dimension:

          private enum MeasurementType {
          	DIMENSION,
          	VERTICAL_DIMENSION,
          	HORIZONTAL_DIMENSION,
          	COMBINED_LENGTH,
          	POLY_LINE,
          	ANGLE,
          	FACE_AREA,
          	POLY_AREA,
          	VOLUME,
          	POINT,
          	POINT_X,
          	POINT_Y,
          	POINT_Z,
          	CIRCULAR_ARC,
          	OTHER;
          }
          
          private static final String DELIMITER = "#";
          
          private static String createKey(MeasurementType type) {
          	return "Dimension-" +type + DELIMITER + System.currentTimeMillis() + DELIMITER + UUID.randomUUID();
          }
          
          VisualizationItem vi = ..
          vi = vi.withUserData(createKey(MeasurementType.DIMENSION));
          
          1 Reply Last reply
          0

          Copyright © 2025 Solibri Inc. | Powered by NodeBB

          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories