-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimplewall.py
More file actions
488 lines (410 loc) · 24.8 KB
/
simplewall.py
File metadata and controls
488 lines (410 loc) · 24.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
import FreeCAD,FreeCADGui,Part, Draft
import os, math
from pivy import coin
import stud, plate, studspacer, framing;
__title__="FreeCAD Stick Framers Toolkit"
__author__ = "Paul Randall"
__url__ = "http://www.mathcodeprint.com"
__command_name__ = "Wall"
__command_group__ = "Constructions"
wall_type = ['Interior','Exterior','Load Bearing','Non-Load Bearing','Demising']
#Not sure if room name makes any sense as most walls will be part of two rooms.
wall_room = ['Living','Dining','Bedroom','Garage','Bathroom','Kitchen']
wall_direction = ['North','South','East','West']
def makeSimpleWall():
FreeCADGui.runCommand( 'SimpleWall',0)
return
class SimpleWall_Command:
""" The Wall object creates a container for all the items that make up
a stud wall.
"""
def GetResources(self):
icon_path = framing.getIconImage( "simple_wall" )
# image_path = "/" + framing.mod_name + '/icons/simple_wall.png'
# image_path = '/stickframe/icons/simple_wall.png'
# global_path = FreeCAD.getHomePath()+"Mod"
# user_path = FreeCAD.getUserAppDataDir()+"Mod"
# icon_path = ""
# if os.path.exists(user_path + image_path):
# icon_path = user_path + image_path
# elif os.path.exists(global_path + image_path):
# icon_path = global_path + image_path
return {"MenuText": "Wall",
"ToolTip": "Add a Wall Group to the Construction",
'Pixmap' : str(icon_path) }
def IsActive(self):
if FreeCAD.ActiveDocument == None:
return False
else:
return True
def Activated(self):
partobj = FreeCAD.ActiveDocument.addObject('App::Part','Wall')
partobj.addProperty("App::PropertyLength", "Length", "Dimension","Change the overall Length of the Wall").Length = "8 ft"
partobj.addProperty("App::PropertyLength", "Height", "Dimension","Change the overall Height of the Wall").Height = "8 ft"
partobj.addExtension('Part::AttachExtensionPython')
names = []
lengths = []
placements = []
rotations = []
expressionslist = []
expressions = []
if framing.isItemSelected():
selection = FreeCADGui.Selection.getSelectionEx()
obj = selection[0].SubElementNames
edge_name = obj[0]
#One Edge
edge_obj = FreeCADGui.Selection.getSelection()[0]
edge_shp = FreeCADGui.Selection.getSelection()[0].Shape
edge_elt = FreeCADGui.Selection.getSelection ()[0].Shape.Edge1
if isinstance( edge_shp, Part.Wire ):
partobj.Length = edge_elt.Length
FreeCAD.ActiveDocument.getObject(partobj.Name).Support = [(edge_obj,'Vertex1'),(edge_obj,edge_name)]
FreeCAD.ActiveDocument.getObject(partobj.Name).MapMode = 'OXY'
#calculate # of studs and positions
# these calculations are the same for all walls, floors, ceiling roofs
# place this is framing
stud_centers = FreeCAD.Units.parseQuantity('406.4 mm')
stud_width = FreeCAD.Units.parseQuantity('3.5 in')
stud_thickness = FreeCAD.Units.parseQuantity('1.5 in')
length = partobj.Length.getValueAs( 'mm' )
#length = partobj.Length.getValueAs( 'mm' ) - (stud_thickness.getValueAs( 'mm') * 2 )
# print( length )
# print( stud_width )
# print( stud_centers )
ln = length.Value
sw = stud_width.Value * 2
sc = stud_centers.Value
# print( ln )
# print( sw )
# print( sc )
# print ( ln - sw )
adj_ln = ln -sw
#math.ceil did not like to work with multiple operations as the arguement
# gaps = math.ceil ( length.Value / stud_centers.Value )
gaps = math.ceil ( adj_ln / sc )
ttl_studs = gaps + 1
span_gaps = gaps - 1
gaps_length = length.Value/stud_centers
span_gap = stud_centers - stud_thickness
start_gap = stud_centers - stud_thickness - ( stud_thickness/2 )
end_gap = length - ( span_gap.getValueAs( 'mm' ) * span_gaps ) - start_gap.getValueAs( 'mm' ) - ( stud_width.getValueAs( 'mm') * ttl_studs)
#Add stud plates Tops and Bottom
names.append( plate.makePlate ( 'Bottom' ).Name) # plate
names.append( plate.makePlate ( 'Top' ).Name) # plate
names.append( plate.makePlate ( 'Plate' ).Name) # plate
# lengths.append ( '2260.6 mm' ) # plate = ( length of wall - ( width of stud * 2 )
# lengths.append ( '2260.6 mm' ) # plate = ( length of wall - ( width of stud * 2 )
# lengths.append ( '2438.4 mm' ) # plate = lenght of wall
lengths.append ( length - ( stud_width.getValueAs( 'mm') * 2 ) )
lengths.append ( length - ( stud_width.getValueAs( 'mm') * 2 ) )
lengths.append ( length )
#lengths.append ( length)
#lengths.append ( length)
#lengths.append ( length + ( stud_width.getValueAs( 'mm') * 2 ) )
placements.append( FreeCAD.Vector (0, 0.0, - 38.10) ) # plate
placements.append( FreeCAD.Vector (0, 5.33e-13, 2324.1 ) ) # plate
placements.append( FreeCAD.Vector (-88.90, 0.0, 2324.1 + 38.1 ) ) # plate
# rotations.append (FreeCAD. Rotation (-0.7071067811865475, 0.0, 0.0, 0.7071067811865476) ) # plate
# rotations.append (FreeCAD. Rotation (-0.7071067811865475, 0.0, 0.0, 0.7071067811865476) ) # plate
# rotations.append (FreeCAD. Rotation (-0.7071067811865475, 1.1102230246251565e-16, 1.1102230246251565e-16, -0.7071067811865476) ) # plate
rotations.append ( FreeCAD.Rotation (0.0, 0.0, 0.0, 1) )
rotations.append ( FreeCAD.Rotation (0.0, 0.0, 0.0, 1) )
rotations.append ( FreeCAD.Rotation (0.0, 0.0, 0.0, 1) )
#the only thing changin is the X of the placement
for i in range(0, ttl_studs):
if i == 0 :
#first_stud, no span added
names.append ( stud.makeStud( "Starter" ).Name )
lengths.append ( partobj.Height - stud_thickness * 3)
placements.append( FreeCAD.Vector ( 0, 88.90, 0) )
rotations.append (FreeCAD. Rotation (0.0, 0.0, 0, 0.0) )
if i == 1:
#second, add first span.
names.append ( stud.makeStud( "Stud" ).Name )
lengths.append ( partobj.Height - stud_thickness * 3 )
placements.append( FreeCAD.Vector ( start_gap, 88.90, 0) )
rotations.append (FreeCAD. Rotation (0.0, 0.0, 0, 0.0) )
# rotations.append (FreeCAD. Rotation (0.0, 0.0, -0.7071067811865475, 0.7071067811865476) )
if ( i > 1 and i < ttl_studs -1):
#middle_bays
names.append ( stud.makeStud( "Stud" ).Name )
# lengths.append ( partobj.Height - stud_thickness * 3 )
lengths.append ( 2324.10 )
placements.append( FreeCAD.Vector ( stud_centers * (i - 1) + start_gap + stud_thickness , 88.90, 0) )
rotations.append (FreeCAD. Rotation (0.0, 0.0, 0, 0.0) )
if i == ttl_studs -1:
#last stud
names.append ( stud.makeStud( "End" ).Name )
lengths.append ( partobj.Height - stud_thickness * 3 )
placements.append( FreeCAD.Vector ( length - 38.09 - 177.80 , 88.90, 0) )
# placements.append( FreeCAD.Vector ( length, 88.90, 0) )
rotations.append (FreeCAD. Rotation (0.0, 0.0, 0, 0.0) )
# names.append( stud.makeStud ( 'Starter' ).Name)
# names.append( stud.makeStud ( 'End' ).Name)
# names.append( stud.makeStud ( 'Stud' ).Name)
# names.append( stud.makeStud ( 'Stud001' ).Name)
# names.append( stud.makeStud ( 'Stud002' ).Name)
# names.append( stud.makeStud ( 'Stud003' ).Name)
# names.append( stud.makeStud ( 'Stud004' ).Name)
# lengths.append ( '2352.675 mm' )
# lengths.append ( '2352.675 mm' )
# lengths.append ( '2352.675 mm' )
# lengths.append ( '2352.675 mm' )
# lengths.append ( '2352.675 mm' )
# lengths.append ( '2352.675 mm' )
# lengths.append ( '2352.675 mm' )
# placements.append( FreeCAD.Vector (0.0, 0.0, -38.1) )
# placements.append( FreeCAD.Vector (2222.5, 8.45989944763528e-15, -38.1) )
# placements.append( FreeCAD.Vector (444.5000000000001, 88.88999999999992, -38.099999999999994) )
# placements.append( FreeCAD.Vector (850.9000000000001, 88.89, -38.099999999999994) )
# placements.append( FreeCAD.Vector (1257.3000000000002, 88.89000000000009, -38.099999999999994) )
# placements.append( FreeCAD.Vector (1663.7000000000003, 88.89000000000017, -38.099999999999994) )
# placements.append( FreeCAD.Vector (2070.1000000000004, 88.89000000000026, -38.099999999999994) )
# rotations.append (FreeCAD. Rotation (-0.0, -0.0, 0.7071067811865475, 0.7071067811865476) )
# rotations.append (FreeCAD. Rotation (0.0, 0.0, 0.7071067811865475, 0.7071067811865476) )
# rotations.append (FreeCAD. Rotation (0.0, 0.0, 0.7071067811865476, -0.7071067811865476) )
# rotations.append (FreeCAD. Rotation (0.0, 0.0, -0.7071067811865475, 0.7071067811865476) )
# rotations.append (FreeCAD. Rotation (0.0, 0.0, -0.7071067811865475, 0.7071067811865476) )
# rotations.append (FreeCAD. Rotation (0.0, 0.0, -0.7071067811865475, 0.7071067811865476) )
# rotations.append (FreeCAD. Rotation (0.0, 0.0, -0.7071067811865475, 0.7071067811865476) )
#add all components to 'container'
for name, placement in zip ( names, placements ):
FreeCAD.ActiveDocument.getObject( name ).Placement.Base = placement
for name, rotation in zip ( names, rotations ):
FreeCAD.ActiveDocument.getObject( name ).Placement.Rotation = rotation
for name, length in zip ( names, lengths ):
partobj.addObject ( FreeCAD.ActiveDocument.getObject( name ) )
FreeCAD.ActiveDocument.getObject( name ).Length = length
for name, expressions in zip ( names, expressionslist):
print ( name )
for label, expression in expressions:
print ("\t{}".format(expression) )
obj = FreeCAD.ActiveDocument.getObject( name )
obj.setExpression ( label, expression )
#Placement [Pos=(-1.97398e-14,-3.55271e-13,38.1), Yaw-Pitch-Roll=(0,0,0)]
#partobj.Placement = FreeCAD.Placement ( FreeCAD.Vector ( -1.97398e-14,-3.55271e-13,38.1 ), FreeCAD.Rotation (0,0,0 ) )
partobj.Placement = FreeCAD.Placement (FreeCAD.Vector (-1.97398e-14,-3.55271e-13,38.1), FreeCAD.Rotation (0.0, 0.0, 0.7071067811865476, -0.7071067811865475 ) )
FreeCAD.ActiveDocument.recompute()
FreeCADGui.SendMsgToActiveView("ViewFit")
#once we know the length of the wall calculate the number of studs needed.
class SimpleWall:
def __init__(self, obj):
obj.addProperty("App::PropertyEnumeration","RoomName","Room","Room this wall is part of").RoomName = wall_room
obj.addProperty("App::PropertyEnumeration","Direction","Room","Define which wall by cardinal").Direction = wall_direction
obj.Proxy = self
print ( "Wall group init" )
def onChanged(self, fp, prop):
''' Do something here '''
# if prop == "Length" or prop == "Width" or prop == "Height":
#fp.Shape = Part.makeBox(fp.Length,fp.Width,fp.Height)
def setProperties(self, obj):
# move property setup here
pass
def execute(self,fp):
fp.positionBySupport()
fp.recompute()
class ViewProviderSimpleWall:
def __init__(self, obj):
''' Set this object to the proxy object of the actual view provider '''
obj.Proxy = self
def attach(self, obj):
''' Setup the scene sub-graph of the view provider, this method is mandatory '''
return
def updateData(self, fp, prop):
''' If a property of the handled feature has changed we have the chance to handle this here '''
return
def getDisplayModes(self,obj):
''' Return a list of display modes. '''
modes=[]
return modes
def getDefaultDisplayMode(self):
''' Return the name of the default display mode. It must be defined in getDisplayModes. '''
return "Lines"
def setDisplayMode(self,mode):
''' Map the display mode defined in attach with those defined in getDisplayModes.
Since they have the same names nothing needs to be done. This method is optional.
'''
return mode
def onChanged(self, vp, prop):
''' Print the name of the property that has changed '''
FreeCAD.Console.PrintMessage("Change property: " + str(prop) + "\n")
def getIcon(self):
''' Return the icon in XMP format which will appear in the tree view. This method is optional
and if not defined a default icon is shown.
'''
return """
/* XPM */
static char * wall_xpm[] = {
"102 113 46 1",
" c None",
". c #000000",
"+ c #E1B313",
"@ c #101010",
"# c #070707",
"$ c #040404",
"% c #060606",
"& c #D9AE18",
"* c #050505",
"= c #090909",
"- c #DDB21A",
"; c #C09913",
"> c #DFB213",
", c #020202",
"' c #DFB215",
") c #0C0C0C",
"! c #080808",
"~ c #E0B214",
"{ c #DDB013",
"] c #111111",
"^ c #010101",
"/ c #0D0D0D",
"( c #E0B315",
"_ c #E0B216",
": c #0B0B0B",
"< c #DDB015",
"[ c #030303",
"} c #0E0E0E",
"| c #0F0F0F",
"1 c #DFB114",
"2 c #DEB218",
"3 c #D2A713",
"4 c #DFB31B",
"5 c #DBB11C",
"6 c #D8AD1B",
"7 c #E0B316",
"8 c #E0B215",
"9 c #E1B314",
"0 c #DAAF19",
"a c #DDB116",
"b c #D4AB1B",
"c c #0A0A0A",
"d c #E0B213",
"e c #D5AC1B",
"f c #D8AE1A",
"g c #DEB115",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ....@+++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ...#$..++++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++.. ...%&+++...++++..+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++......++++++++..*++..++=..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++....++++++++++-;..+..;....",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..++++++++++++++>$.....,..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..+++++++++++++++')...++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..+++++++++++++++...#+++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..+++++++++++++!..++++++..",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..++++++++++~{..]++++++...",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..++++++++++..,++++++.... ",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..++++++++^..++++++^... ",
" ..++++++++..+++.. ..++++++++..+++.. ..++++++++..+++..++++++/..++++++)... ",
" ..++++++++..+++.. ..++++++++..+++.. ...(+++++++..+++..+++_+..:++++++.... ",
" ..++++++++..+++.. ..++++++++..+++.. ....^+++++++..+++..+++..^++++++.... ",
" ..++++++++..+++.. ..++++++++..+++.. ....++..:+++++..+++..<[..++++++[... ",
" ..++++++++..+++.. ..++++++++..+++.. ...+++++}..++++..+++....++++++|... ",
" ..++++++++..+++.. ..++++++++..+++.....*+++++++1,..++..++*..%++++++.... ",
" ..++++++++..+++.. ..++++++++..+++....++++++++++++..,..:...)+++++.... ",
" ..++++++++..+++.. ..++++++++..++2..++++++++++++++~+.....#+++++%... ",
" ..++++++++..+++.. ..++++++++..+++..++++++++++++++++:...++++~;... ",
" ..++++++++..+++.. ..++++++++..+++..+++++++++++++++..[3+++++.... ",
" ..++++++++..+++.. ..++++++++..+++..+++++++++++++^..++++++.... ",
" ..++++++++..+++.. ..++++++++..+++..+++++++++++)..++++++!... ",
" ..++++++++..+++.. ..++++++++..+++..++++++++++..:++++++... ",
" ..++++++++..+++.. ..++++++++..+++..++++++++..^++++++.... ",
" ..++++++++..+++.. ..++++++++..+++..++++++[..+4++++,... ",
" ..++++++++..+++.. ...++++++++..+++..++++|..+5++++}... ",
" ..++++++++..+++.. .....+++++++..+++..+++..=6+++++.... ",
" ..++++++++..+++.. ....++...+++++..+++..+...++++++.... ",
" ..++++++++..+++.. ....+7++++..%+++..++8....+++++>$... ",
" ..++++++++..+++.....]+++++++++..++..++^..@++++++... ",
" ..++++++++..+++...$++++++++++9+[....[...++++++.... ",
" ..++++++++..+++..++++++++++++++++.....++++++.... ",
" ..++++++++..+++..+++++++++++++++0*..^a++++!... ",
" ..++++++++..+++..+++++++++++++++..|+9++++... ",
" ..++++++++..+++..+++++++++++++..,++++++.... ",
" ..++++++++..+++..+++++++++++,..+++++b,... ",
" ..++++++++..+++..+++++++++}..+~++++/... ",
" ..++++++++..+++..++++++++..c++++++.... ",
" ..++++++++..+++..++++++...++++++.... ",
" ...++++++++..+++..++++$..++++9d[... ",
" .....}++++++..+++..+++..+++++++... ",
" ...$++)..+2+++..+++..+..*e+++++.... ",
" ....++++++^..+++..+++....++++++.... ",
" ...++++++++++..$+..++...++++++#... ",
" ...:+++++++++++';....^..^+++++3... ",
" ...^++++++++++++++++$....++++++.... ",
"....++++++++++++++++++,..*+++++^... ",
"..+~++++++++++++++++/..++++++)... ",
"%++++++++++++++++++..cd+++++.... ",
"+++++++++++++++++..^++++++.... ",
"+++++++++++++++[..++++++[... ",
"++++++++++++++..++++++|... ",
"++++++++++++..*>+++++.... ",
"++++++++++...++++++.... ",
"++++++++#..+++++f#... ",
"++++++{..]++++~;... ",
"+++++..$++++(+.... ",
"+++^..++++++^... ",
"+c..+++++d=... ",
"..:g+++++.... ",
"^++++++.... ",
"+++++[... ",
"+++}... ",
"++.... "};
"""
def __getstate__(self):
''' When saving the document this object gets stored using Python's cPickle module.
Since we have some un-pickable here -- the Coin stuff -- we must define this method
to return a tuple of all pickable objects or None.
'''
return None
def __setstate__(self,state):
''' When restoring the pickled object from document we have the chance to set some
internals here. Since no data were pickled nothing needs to be done here.
'''
return None
FreeCADGui.addCommand('SimpleWall', SimpleWall_Command())