Message 1 of 3
API access to surface pattern alignment
Not applicable
05-23-2016
01:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a model requiring specific alignment of surface pattern across the entire model. I've done it manually more than once, and locked the reference to a datum (reference plane) but this constraint does not hold when I modify elements. I'd like a programmatic way to re-align every instance of this surface pattern to the reference datum. Conceptually:
datum = referenceLevel.elevation()
for element in elements:
faces = element.faces()
for face in faces:
if face.material = targetMaterial :
material.zOrigin = datum