Message 1 of 5
dimension a mullion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So, again puzzled. Sort me out please.
Goal: dimension a horizontal mullion in a section view.
Approach:
- get plane of active view
- get normal of that plane
- get mullion (or mullions for that matter)
- get faces of that mullion
- get normals of those faces
- check if facenormal is perpendicular to refview (refview.CrossProduct(facenormal))
- for each of the 6 faces of that mullion check with refview
- is the .x is -1: it is okay
- if okay: get reference of that normal.
- create a line for dim function
- since it's a vertical dimension line I'm placing: .x is static, .z differs:
- startpoint = XYZ(10, review.Y, 0)
- endpoint = XYZ(10, review.Y, 10)
- value 0 and 10 dont matter I believe as long as it's different!?
- since it's a vertical dimension line I'm placing: .x is static, .z differs:
- dim
Somehow I think I'm totally doing it wrong. I don't have a clear understanding of getting the correct references.
1. 6 faces so 6 references. 2 horizontal, 2 parrallel, 2 vertical.
2. the 2 horizontal I must have.
Am I overthinking it? Total brainfart here atm.
3Pinter
love python coding