Skip to main content
Solved

Creating CAD objects from “Voxel Maker.ZPL” macro


elisenda v.

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!

 

Best answer by David.Nguyen

@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

View original
Did this topic help you find an answer to your question?

3 replies

David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1085 replies
  • Answer
  • March 25, 2024

@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


Kevin Scales
En-Lightened
Forum|alt.badge.img+1
  • En-Lightened
  • 185 replies
  • April 18, 2024

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.


David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1085 replies
  • April 19, 2024

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

 

David


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings