0
Q
墙面尺寸
A
回答
0
你实际上是在对线路的控制,当你创建维度。从Revit中取出一条线,然后将其转换并垂直于您感兴趣的线偏移它:(给定dbView和参考阵列以及曲线)
//create your line along the element you want to dimension
Line line = Line.CreateBound(locCurve.Curve.GetEndPoint(0), locCurve.Curve.GetEndPoint(1));
//Compute the perpendicular of that line (I took advantage of the fact that I was working in plan:
XYZ perpendicular = line.ComputeDerivatives(0.5, true).BasisX.CrossProduct(new XYZ(0, 0, 1));
//transform the line to the new offset location:
Line offsetline = line.CreateTransformed(Transform.CreateTranslation(perpendicular.Normalize())) as Line;
//Create the dimension.
revitDoc.Create.NewDimension(dbView, offsetline, aDimensionRefArray);
相关问题
- 1. 贴在墙上 - 图像尺寸限制?
- 2. 组子画面尺寸
- 3. 网星尺寸在后面
- 4. pdf页面的尺寸
- 5. 设置面板的尺寸
- 6. Swing:面板尺寸问题
- 7. wpf xaml面板尺寸
- 8. 获取页面尺寸
- 9. CVMat尺寸/尺寸/形状
- 10. NSImageView尺寸vs NSImage尺寸
- 11. 计算尺寸/尺寸
- 12. 设置与面板尺寸相关的外形尺寸
- 13. 移动网站的理想尺寸和最大页面尺寸?
- 14. iPhone:不同尺寸的面膜UIImageView到平方尺寸
- 15. Amalgamate A6尺寸页在A4尺寸页面上打印
- 16. 画面 - 根据其他尺寸值的颜色文字尺寸
- 17. 根据标签尺寸调整面板的尺寸
- 18. 尺寸
- 19. 尺寸类别和UITableViewCell/UICollectionViewCell尺寸
- 20. Silverlight 3:尺寸模型/ 100%尺寸
- 21. 如何用wkhtmltopdf处理尺寸/尺寸?
- 22. Magento产品尺寸的尺寸单位
- 23. 尺寸图像以适合WebView尺寸
- 24. 全尺寸Silverlight应用尺寸
- 25. PDF尺寸对实际内容尺寸
- 26. Devel ::尺寸报告的尺寸
- 27. 屏幕尺寸到图像尺寸
- 28. 尺寸图像的尺寸1600 * 1200
- 29. 当照片尺寸不同时,如何显示照片墙
- 30. 非对称平面的像素尺寸