这个可以。
有没有办法让Wall自带材料呢?每次点Wall工具画出来的,都要自己再选材料,太麻烦了。
其实对材料不是非常关心,更关心的是wall的型式,也就是单层(内墙)和多层(外墙)的区别。希望是点两个点一画,就直接到最后的型式。
这个可以。
vanuan wrote: ↑Thu Aug 06, 2020 11:21 amFirst of all, when selecting a wall, UX should clearly show the pivot points which forms the wall axis. The axis line defines the reference relative to which the wall grows in thickness and height. Of course, this means, all walls should be modeled as lines, not areas or solids. The latter are beams or slabs.
Secondly, multi material definition should be openable from the wall context menu or in the dialog when double-clicking the wall. Changing wall layers should affect the wall thickness relative to the wall axis. Multimaterial definition should be more powerful, describing both line appearance and physical properties. Maybe the task area is too small and it should be opened in a dedicated MDI window.
Thirdly, there should be an extrusion alignment setting to change the direction of material extrusion. If alignment to center not supported by IFC, model it as multiple layer sets extruded in the opposite directions.
And last but not least, hatching patterns are very important.
After those are implemented, then there should be some material presets, e.g. cladding + insulation + woodframing + drywall, bricks + air + bricks, plaster + insulator + reinforced concrete + plaster.
I'll check out how the multimaterial tool can be extended with presets. Maybe that's the only thing that's missing to implement what OP asks.
Code: Select all
class _CommandWallExt:
def GetResources(self):
#return {'Pixmap' : 'Arch_WallExt',
return {'Pixmap' : os.path.dirname(__file__)+"./resources/template_resource.svg",
Code: Select all
import os
import FreeCAD,Draft,ArchComponent,DraftVecUtils,ArchCommands,math
我不会Inkscape呀。
在draft里画完,在model tree里选中要输出的。然后File/export,选SVG格式输出。