Solved

Creating CAD objects from “Voxel Maker.ZPL” macro

  • 22 March 2024
  • 3 replies
  • 43 views

Hello everyone, 

I tried to use the “Voxel Maker.ZPL” macro provided in the following article: How to show Detector Volume data in 3-D, but even though no errors appear, it doesn’t create any imported CAD. Is there any new version I can use?

Thank you!

 

icon

Best answer by David.Nguyen 25 March 2024, 09:37

View original

3 replies

Userlevel 7
Badge +2

@elisenda v.

 

Its hard to troubleshoot such a complex macro without looking at your file. My educated guess would be to look at line 144 of the macro:

data = 1  # set this equal to 1 in order to show ABSORBED flux data

Depending on how you’ve setup your Detector Volume, this data (from the NSDD numeric function) could amount to nothing. Can you try with data = 0 instead?

My feeling is that it would be worth implementing this macro with the ZOS-API as it is easier to troubleshoot more complex code in an integrated development environment (IDE).

Hope this helps and take care,

 

David

Userlevel 4
Badge +1

David is correct. Without a sample, there’s no good way to answer this except by guessing. The sample worked the last time I worked with it, so I’m guessing it is something like what David suggested (which is on line 114, not 144) or possibly a path issue.

Userlevel 7
Badge +2

Yes, the line is 114. Thanks for correcting me @Kevin Scales.

 

David

Reply