+ added Draft2Sketch command, converts bidir between Sketch and Draft

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5227 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
yorikvanhavre 2011-12-06 17:18:18 +00:00
parent 56118c1893
commit c618af29dc
6 changed files with 371 additions and 37 deletions

View File

@ -2,7 +2,7 @@
# Resource object code
#
# Created: Sun Nov 27 18:32:10 2011
# Created: Tue Dec 6 14:48:29 2011
# by: The Resource Compiler for PyQt (Qt v4.7.3)
#
# WARNING! All changes made in this file will be lost!
@ -24574,6 +24574,132 @@ qt_resource_data = "\
\xf2\xd7\x91\x9d\xcb\x2f\x80\x2f\x27\x3b\xe3\x0a\xf3\x5d\xb2\xf9\
\x37\x5e\x34\x1b\x5c\xe9\xe8\x6b\xf9\xaa\xfb\x6a\x81\x9f\x3b\xfa\
\x8e\xf2\xee\xd5\xbf\x01\xd6\x56\x1c\x39\
\x00\x00\x07\xb5\
\x00\
\x00\x1a\x6e\x78\x9c\xed\x58\x5d\x6f\xe3\xb8\x15\x7d\xcf\xaf\x50\
\x35\x2f\x1b\xd4\x92\xf8\x25\x8a\xf4\xc4\x59\x14\x1b\x4c\xb1\xc0\
\x02\x05\x76\x66\xb0\xe8\xd3\x80\x96\x68\x5b\x8d\x2c\x19\x94\x1c\
\xdb\xf9\xf5\xbd\xd4\xb7\x62\x25\x3b\x3b\x5d\xf4\xa1\x53\x3b\x89\
\xad\x7b\x2f\x2f\xc9\xcb\xc3\xc3\xc3\xdc\xfd\x78\xde\x67\xce\x93\
\x36\x65\x5a\xe4\x2b\x17\xfb\xc8\x75\x74\x1e\x17\x49\x9a\x6f\x57\
\xee\xe7\x4f\x1f\x3c\xe1\x3a\x65\xa5\xf2\x44\x65\x45\xae\x57\x6e\
\x5e\xb8\x3f\xde\xdf\xdc\xfd\xc5\xf3\x9c\x9f\x8c\x56\x95\x4e\x9c\
\x53\x5a\xed\x9c\x9f\xf3\xc7\x32\x56\x07\xed\xfc\xb0\xab\xaa\xc3\
\x32\x08\x4e\xa7\x93\x9f\xb6\x46\xbf\x30\xdb\xe0\xd6\xf1\xbc\xfb\
\x9b\x9b\xbb\xf2\x69\x7b\xe3\x38\x0e\xf4\x9b\x97\xcb\x24\x5e\xb9\
\x6d\x83\xc3\xd1\x64\x75\x60\x12\x07\x3a\xd3\x7b\x9d\x57\x65\x80\
\x7d\x1c\xb8\x43\x78\x3c\x84\xc7\xb6\xf7\xf4\x49\xc7\xc5\x7e\x5f\
\xe4\x65\xdd\x32\x2f\xdf\x8d\x82\x4d\xb2\xe9\xa3\xed\x68\x4e\xb4\
\x0e\xc2\x52\xca\x00\x91\x80\x10\x0f\x22\xbc\xf2\x92\x57\xea\xec\
\x4d\x9b\xc2\x18\xe7\x9a\x12\x84\x50\x00\xbe\x21\xf2\xeb\xa2\x96\
\xe7\x0c\x4a\xf1\xea\x60\x6a\xef\xb8\x77\x28\xff\x01\x7e\xfb\x06\
\x9d\xc1\x2f\x8b\xa3\x89\xf5\x06\x5a\x6a\x3f\xd7\x55\xf0\xf0\xe9\
\xa1\x77\x7a\xc8\x4f\xaa\x64\x94\xa6\xab\xfe\xa4\xdf\xc9\x92\xe4\
\x6a\xaf\xcb\x83\x8a\x75\x19\x74\xf6\xba\xfd\x29\x4d\xaa\xdd\xca\
\xe5\xec\x70\xae\x9f\x77\x3a\xdd\xee\xaa\x91\x21\x4d\x56\x2e\xcc\
\x30\x14\x04\xd7\xcf\xdd\x18\x96\x3d\x92\x90\x4f\x49\x13\xda\x26\
\x1e\xbb\x98\xf0\xb1\x63\x64\xc4\xd1\xb4\x75\x52\xc4\x76\x48\x2b\
\xf7\xc1\xa8\x4d\xf5\xa5\xfe\xeb\x77\x95\xec\x13\x15\xc7\xea\x70\
\xac\xbe\xe8\x73\xa5\xf3\x26\x23\xcc\x65\x34\xb1\xda\x6d\x9b\xf9\
\x93\x49\x8d\x40\x8e\xa7\x09\xf5\xf9\x50\x98\xca\xdb\xa4\x99\x6e\
\xba\x0f\xf6\x3a\x49\x55\x90\xa8\x4a\x05\xff\x2c\x4c\xfa\x18\x7c\
\x30\x5a\xff\xf4\xb7\x87\x20\x8d\x01\x6b\xc1\xc7\x47\x5d\xc5\x3b\
\x6d\xfc\x43\xbe\x9d\x4d\x75\x4e\x0e\xb0\x7a\x2c\x9c\x75\x5e\x3a\
\xe7\x3d\x78\xef\x12\xbd\x29\x6d\x54\x53\x54\xfb\x04\x55\xa5\xb5\
\x0f\xbc\x80\x0c\xad\xcc\xdf\x8d\x4a\x52\xd8\x0f\x4d\xdc\x28\x63\
\x5c\x64\x99\x8e\x61\x65\x54\x76\x52\x97\xd2\xed\x03\x20\xd5\xb4\
\x29\xa7\x4c\xb6\x49\x21\x6d\x59\x15\x87\x2e\x16\xea\x5f\x5d\x32\
\x98\xb5\x35\x7a\x90\xb1\x30\xcb\x77\xa8\x7e\xbd\xaf\x4d\x05\x20\
\x24\xad\x2e\x4b\xfc\xde\x1d\xda\x14\x9b\x4d\xa9\xa1\x63\x34\xb2\
\xd5\xa8\x80\x16\x9c\x86\xd8\x75\x82\xff\xac\x37\x34\xd7\x1b\x9e\
\xef\x8d\xf6\xbd\xdd\x05\xd3\x69\xbf\x5d\xc6\xab\x2a\x51\x1a\x45\
\x7f\xa8\x4a\x58\x2a\xfa\x8d\x55\x82\xbe\xe4\x1f\xac\x12\x97\x9b\
\xcd\x57\xf4\x36\x57\x25\x4a\x05\xfe\xc6\x2a\xfd\x1e\xd8\x6a\xfa\
\x5a\xee\x8c\x06\xba\x7d\x37\x53\xcf\xb7\xca\x2d\xe8\x90\x06\xaf\
\x5c\x89\x60\x73\x8a\x28\xec\x8d\x17\x30\x62\x2c\x91\x3f\x36\x9e\
\x09\x18\x09\x8f\x7c\x89\x38\x19\x42\xc9\x4c\xe8\xb6\xed\xe9\x73\
\x9e\x56\x40\xd6\xc7\x52\x9b\x8f\x96\xf0\xfe\x91\x7f\x2e\xf5\x55\
\xd4\x27\xa3\xf2\x12\xd8\x75\xbf\x72\xf7\xaa\x32\xe9\xf9\x07\x0f\
\x2f\x10\xbc\xf1\x82\x00\x53\xfb\x34\xe4\x0b\x74\x3b\x94\xb1\x2f\
\xcd\x01\xb8\xe5\x00\xb5\x81\xf3\xa8\xcb\xd9\x93\x5a\x75\xb1\x14\
\x3c\x0d\xa5\x89\x7b\x55\xde\xa7\xc3\x97\x33\x20\xc5\x59\x3a\x94\
\xc0\x1f\x3c\x1b\x71\x69\x22\x30\x6c\x17\xf8\x40\xb3\x31\xcf\x96\
\xa8\xdf\x48\xd3\x8e\xc0\x03\x62\xdb\xa6\xc0\x87\x75\x1c\xc1\x3e\
\xad\x5f\xd3\x36\xb0\x64\xa3\xb9\x01\x33\x0d\x90\xbd\xb3\x45\x53\
\xd9\x9f\x09\x97\x9a\xa4\xc6\x7d\x4f\xbb\x80\x9d\x3e\xac\x6c\x7c\
\xb6\xcb\x8d\xa8\xcf\xa9\x1c\x1a\xc5\x50\x20\xcc\x08\xf3\x19\xe3\
\x43\xec\x66\x36\x76\x33\x1b\x6b\xc0\x28\xc1\x86\x38\x66\x5f\x05\
\x10\x9f\x51\x14\x31\x29\x17\xf0\x95\x72\x14\xe2\x90\x6b\x2f\xb2\
\x4f\x04\x91\x08\x53\xed\x89\x05\xf2\x01\xaf\x4c\x20\xc0\x11\x8f\
\x98\x1f\x31\x21\x16\x98\x30\xe6\x13\x41\xf8\xed\x57\xa2\xb5\x29\
\xfc\x5d\x60\xcf\x88\xfa\x5b\x0f\x31\x7b\x6a\x25\x4f\xa9\x3e\x0d\
\x07\xc9\x5a\xf5\xf8\x3e\xa8\xad\xae\x29\x04\xea\xbd\xa9\x5f\xad\
\x63\x5d\x98\x44\x9b\xce\xc5\xeb\xd7\xc4\xd5\xb2\x4c\xa3\x0b\x6f\
\x5e\xa0\x08\xb2\xf6\x7e\x34\xef\x2f\x77\x2a\x29\x4e\x2b\x97\xbc\
\x74\x3e\x17\xc5\xbe\xd6\x08\x8c\xf6\x9b\x75\x00\x0e\xac\x56\x24\
\x6d\x5d\x09\xbf\x76\x42\x6f\x1e\x25\x21\x78\xb1\xc0\x57\xde\xa3\
\x31\x50\x3f\x2f\x53\x17\x0d\x73\xda\x52\xca\xbb\x81\x95\xbb\xe2\
\xb4\x35\xb6\x34\x95\x39\xea\x97\x0d\x41\x79\x1c\xad\xe2\xf4\x8e\
\x4d\xe9\x5b\x9d\x33\x8a\xb0\x6d\xbd\xf5\xba\x38\xcf\x27\x38\xa5\
\x39\x4c\xd5\x6b\x95\x13\x26\xe2\xaa\x20\x6d\x44\xa7\xa5\xa2\x50\
\xbc\x12\x71\x1e\xce\x8b\x97\x2e\xbb\x14\xf2\x15\xdf\x5e\x9d\xd3\
\x7d\xfa\xac\x13\x7b\x00\xb4\x58\xd9\xeb\x4a\x59\x15\x33\xe0\xa2\
\xb3\xc0\x56\xe6\x9d\xc8\x00\x19\xbc\xfc\xf5\xe1\x43\x7f\x12\xc5\
\xf1\xf2\xb7\xc2\x3c\x0e\x87\x88\x0d\x50\x6b\x10\x56\x2b\xb7\x3f\
\x1d\xad\x74\x89\x97\x76\x2f\xa8\xea\x3e\xdd\xc3\x6a\x5b\xcd\xfb\
\x57\x90\x9e\x80\xd0\xde\x31\x09\xb6\x4c\x38\x24\x6d\xd2\x1a\xdd\
\x68\xda\xd9\x6b\x40\x12\xef\x53\xdb\x28\xf8\x58\xa5\x59\xf6\xb3\
\xed\x64\x74\x62\xb6\x49\xd3\x2a\xd3\xf7\x75\x9f\xcd\xd7\x6e\x16\
\x41\x3b\x8d\xee\xc8\x1b\xcd\xf2\x2e\xe8\xca\x50\x3f\x6d\x87\xf2\
\xd4\xc0\xb9\x82\x55\xa6\xd6\x3a\x5b\xb9\xbf\x58\xa7\x73\xe5\xdd\
\x9a\xe2\x78\xd8\x17\x89\x6e\x9b\x77\x65\xdd\x8e\x99\x6c\x0c\xc5\
\x37\xa5\xe7\xae\xd8\xeb\xe0\x52\x8b\xce\x87\x16\x94\x65\xf0\x8b\
\x5a\x07\xb5\x1a\x6e\x05\x68\x52\x2b\xe3\x4e\x7d\xce\x65\x6c\x14\
\x28\xf5\x09\x8b\x04\x30\xd2\xab\x71\x97\x57\xe2\xaa\x2b\xa6\x03\
\x0e\xa3\x3c\x12\x9c\xd6\x27\xe2\xf0\xe4\xc1\xa1\xeb\xe3\x30\xc4\
\x96\x01\x29\xf3\x05\x97\x9c\xdc\x0e\x2a\xca\xc0\x21\x70\xa5\x6b\
\xa6\xc2\x0f\xa6\x9f\x2d\x73\xb8\x5f\x82\xb8\x31\xc5\xa3\x5e\x02\
\x4f\x01\x5f\xa3\xf6\xb1\xd9\x55\x4b\x12\xf9\x11\x11\x56\x1e\xf0\
\xce\x61\x8f\x0f\x98\xcd\x12\x56\x20\x4f\xc6\xc6\x7f\x15\x69\x3e\
\xb5\x02\x92\xb4\xc9\x60\x87\x54\x4b\xd6\xd9\x06\x15\xd5\x1a\x12\
\x05\x94\x65\x8c\xba\x8c\x47\x53\x5b\x1b\x6d\x05\xaa\x74\xaf\xcc\
\xa3\x36\x8d\xff\x29\x2d\xd3\x75\x9a\xd9\x14\xf5\xd7\x4c\xbf\x4f\
\xd2\xf2\x00\x28\x80\xcb\x97\x1d\xc6\xfb\x02\x6e\x1d\x9b\xac\x38\
\xf5\x7e\x58\x66\xf8\xf0\xd6\x2a\x7e\xdc\xd6\xe3\x5b\xaa\x18\x56\
\xf9\x98\xc1\x55\xfa\x85\x6c\xb3\x85\xa3\x82\x23\x4f\x8c\x1c\x1d\
\xc1\x08\xea\x87\x14\xd1\x91\xa7\x23\x16\x1c\x4a\x5f\x20\x22\xc7\
\x3e\x7b\xfe\x09\x49\x7c\x49\x25\x1f\x99\x81\x4e\x22\x01\x67\x5d\
\x48\xe8\x38\x7a\x6e\xed\x85\xe4\x98\x53\x42\x60\xe1\x19\x90\x36\
\x61\x20\x85\xe0\xc6\x29\x98\x90\x21\x8e\x22\x30\x87\x44\xb0\x08\
\x51\x62\xc1\x71\x3b\x16\xb6\x07\x55\xed\x46\x00\x98\xea\x22\x65\
\x62\xf7\x4f\x41\x47\xe8\x73\x11\x31\xfc\x9d\x60\xc3\xd6\x14\xb0\
\x41\xbc\xf1\x72\xf6\xa5\xb5\x27\x28\x85\x1d\x2a\xec\x7b\x36\x00\
\x56\x9e\xc2\xa6\x8f\xe0\x3d\x1b\x60\x6a\xc4\xbc\x91\xc1\x5c\xe6\
\x03\xec\x11\xe3\xc0\xfd\x9e\x72\xfb\x5e\xf4\x9d\x38\xca\xe9\xc3\
\x17\xfd\x37\x07\x39\x18\xde\x1e\xe5\x5d\x03\xf4\x46\xd8\x38\xea\
\xf9\x4d\xbc\x82\xb0\x92\x94\x91\x88\x2d\x08\x28\xaf\x50\x50\x19\
\x2e\x3c\x30\xda\xfb\x81\x8c\xc0\xc8\x41\xcf\x23\x0a\x1a\x0c\x09\
\xb0\x4a\xbc\xc0\x38\x22\x20\x47\x84\x98\x40\xf7\x9b\xb8\xcb\x9a\
\xeb\x7b\xda\x94\xbb\x64\x48\x42\x06\x7b\xe5\xbb\xc0\x67\xc7\x5d\
\x73\xcc\x05\xfa\x37\x04\xd2\x98\xa3\x2e\x0e\x12\x1a\x88\x4a\xbc\
\xa0\x2e\x6e\xc1\x4c\xf1\x94\xb9\x42\x84\x40\x3e\xe3\xd1\x0d\xf0\
\x35\xe6\x42\x04\x81\xf8\xb7\xcc\x15\x86\x21\x8f\x24\x69\x98\x0b\
\x90\x40\x59\xcd\x5c\x0c\xa3\x08\x2e\x17\xff\x05\xe6\x9a\xc3\xc6\
\xf7\xc9\x5c\xff\xe7\xad\xdf\xe3\x2d\x19\xc1\x8f\x98\xf2\x56\x84\
\xa4\x84\xcb\xc5\x88\xb8\x24\x11\x3e\x03\xdd\xc5\xde\x42\xee\xab\
\xe0\x7c\x47\x74\xc4\x01\x90\xf6\x61\x04\x9c\xfa\xd1\x1c\x33\x90\
\x89\x4f\x3a\x2f\x92\x64\x0c\x60\xb8\xb4\x4d\x01\x8c\x89\x8f\x24\
\x0f\x31\x1c\xff\xed\x0b\x8b\x97\x58\x5e\x1f\xab\xea\x7f\x09\xca\
\x35\x5e\x30\xc2\x18\x36\x2f\x62\x70\x7c\xc0\x32\x20\x21\x1d\x4f\
\x20\xa0\x37\x16\xb2\x05\xf0\x5c\x48\x64\xe4\x30\xa0\xfe\x28\xb2\
\xb2\xd9\x41\x0b\x11\x01\xae\x30\x76\xb8\x5d\x4a\xca\x71\x6d\xf4\
\x3a\x6b\x08\xb4\x44\xac\x98\xea\xd2\x30\xf0\xb5\x69\x9e\x1d\xe8\
\x2f\x24\x3e\x13\x94\x8d\x52\x11\xc7\x6b\x5a\x09\x30\x36\x8d\x68\
\xdb\x35\x6f\x9f\x79\x97\x84\x3b\x1e\x0c\x26\x44\x24\x1a\x77\x0b\
\x19\x38\xf5\x31\x08\xc1\x17\xf0\xec\x79\x3c\x12\x63\x75\x38\xfa\
\x07\x4f\x0e\x6b\x5b\x15\xc6\x83\x6b\xf7\x93\xaa\x8e\x46\xdb\x9b\
\xeb\xf0\x4f\xc6\x6d\x73\xd7\x82\x8f\x3b\x7b\x37\xbc\xbf\xf9\x37\
\x96\xc8\x9e\xfb\
\x00\x00\x09\x02\
\x00\
\x00\x35\x6d\x78\x9c\xed\x5a\x5b\x6f\xe3\xba\x11\x7e\xcf\xaf\x50\
@ -30952,6 +31078,11 @@ qt_resource_name = "\
\x00\x70\
\x00\x72\x00\x65\x00\x66\x00\x65\x00\x72\x00\x65\x00\x6e\x00\x63\x00\x65\x00\x73\x00\x2d\x00\x64\x00\x72\x00\x61\x00\x66\x00\x74\
\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x16\
\x06\xdf\x3b\x47\
\x00\x44\
\x00\x72\x00\x61\x00\x66\x00\x74\x00\x5f\x00\x44\x00\x72\x00\x61\x00\x66\x00\x74\x00\x32\x00\x53\x00\x6b\x00\x65\x00\x74\x00\x63\
\x00\x68\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x14\
\x02\x03\x8f\xc7\
\x00\x44\
@ -31100,8 +31231,8 @@ qt_resource_name = "\
qt_resource_struct = "\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x04\x00\x00\x00\x01\
\x00\x00\x00\x10\x00\x02\x00\x00\x00\x02\x00\x00\x00\x3c\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x22\x00\x00\x00\x1a\
\x00\x00\x00\x10\x00\x02\x00\x00\x00\x02\x00\x00\x00\x3d\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x23\x00\x00\x00\x1a\
\x00\x00\x00\x38\x00\x02\x00\x00\x00\x05\x00\x00\x00\x15\
\x00\x00\x00\x1a\x00\x02\x00\x00\x00\x10\x00\x00\x00\x05\
\x00\x00\x02\x72\x00\x01\x00\x00\x00\x01\x00\x05\x98\x94\
@ -31125,40 +31256,41 @@ qt_resource_struct = "\
\x00\x00\x00\x64\x00\x00\x00\x00\x00\x01\x00\x00\x01\x64\
\x00\x00\x00\x96\x00\x00\x00\x00\x00\x01\x00\x00\x04\xc4\
\x00\x00\x00\x7c\x00\x00\x00\x00\x00\x01\x00\x00\x03\x12\
\x00\x00\x06\x42\x00\x01\x00\x00\x00\x01\x00\x06\xdb\xe5\
\x00\x00\x05\x74\x00\x00\x00\x00\x00\x01\x00\x06\x99\x0b\
\x00\x00\x06\xb0\x00\x01\x00\x00\x00\x01\x00\x07\x01\x17\
\x00\x00\x03\x34\x00\x01\x00\x00\x00\x01\x00\x05\xfb\xbe\
\x00\x00\x03\xbe\x00\x00\x00\x00\x00\x01\x00\x06\x1c\x27\
\x00\x00\x04\x2e\x00\x01\x00\x00\x00\x01\x00\x06\x44\xec\
\x00\x00\x04\xf4\x00\x01\x00\x00\x00\x01\x00\x06\x71\x39\
\x00\x00\x05\x96\x00\x00\x00\x00\x00\x01\x00\x06\xa7\xc1\
\x00\x00\x06\x84\x00\x01\x00\x00\x00\x01\x00\x06\xf0\x0d\
\x00\x00\x04\xd0\x00\x01\x00\x00\x00\x01\x00\x06\x66\xcd\
\x00\x00\x04\x54\x00\x01\x00\x00\x00\x01\x00\x06\x4a\xb0\
\x00\x00\x03\x8a\x00\x01\x00\x00\x00\x01\x00\x06\x10\x36\
\x00\x00\x07\x22\x00\x01\x00\x00\x00\x01\x00\x07\x20\x6b\
\x00\x00\x04\xaa\x00\x01\x00\x00\x00\x01\x00\x06\x5d\x39\
\x00\x00\x06\x74\x00\x01\x00\x00\x00\x01\x00\x06\xe3\x9e\
\x00\x00\x05\xa6\x00\x00\x00\x00\x00\x01\x00\x06\xa0\xc4\
\x00\x00\x06\xe2\x00\x01\x00\x00\x00\x01\x00\x07\x08\xd0\
\x00\x00\x03\x66\x00\x01\x00\x00\x00\x01\x00\x06\x03\x77\
\x00\x00\x03\xf0\x00\x00\x00\x00\x00\x01\x00\x06\x23\xe0\
\x00\x00\x04\x60\x00\x01\x00\x00\x00\x01\x00\x06\x4c\xa5\
\x00\x00\x05\x26\x00\x01\x00\x00\x00\x01\x00\x06\x78\xf2\
\x00\x00\x05\xc8\x00\x00\x00\x00\x00\x01\x00\x06\xaf\x7a\
\x00\x00\x06\xb6\x00\x01\x00\x00\x00\x01\x00\x06\xf7\xc6\
\x00\x00\x05\x02\x00\x01\x00\x00\x00\x01\x00\x06\x6e\x86\
\x00\x00\x04\x86\x00\x01\x00\x00\x00\x01\x00\x06\x52\x69\
\x00\x00\x03\xbc\x00\x01\x00\x00\x00\x01\x00\x06\x17\xef\
\x00\x00\x07\x54\x00\x01\x00\x00\x00\x01\x00\x07\x28\x24\
\x00\x00\x04\xdc\x00\x01\x00\x00\x00\x01\x00\x06\x64\xf2\
\x00\x00\x02\xe2\x00\x00\x00\x00\x00\x01\x00\x05\xe1\x16\
\x00\x00\x06\x14\x00\x01\x00\x00\x00\x01\x00\x06\xd4\x00\
\x00\x00\x03\xe6\x00\x00\x00\x00\x00\x01\x00\x06\x2b\x78\
\x00\x00\x05\x24\x00\x00\x00\x00\x00\x01\x00\x06\x7d\x12\
\x00\x00\x04\x0a\x00\x01\x00\x00\x00\x01\x00\x06\x3e\x4f\
\x00\x00\x03\x34\x00\x01\x00\x00\x00\x01\x00\x05\xfb\xbe\
\x00\x00\x06\x46\x00\x01\x00\x00\x00\x01\x00\x06\xdb\xb9\
\x00\x00\x04\x18\x00\x00\x00\x00\x00\x01\x00\x06\x33\x31\
\x00\x00\x05\x56\x00\x00\x00\x00\x00\x01\x00\x06\x84\xcb\
\x00\x00\x04\x3c\x00\x01\x00\x00\x00\x01\x00\x06\x46\x08\
\x00\x00\x03\x04\x00\x01\x00\x00\x00\x01\x00\x05\xf3\x2f\
\x00\x00\x06\xd2\x00\x01\x00\x00\x00\x01\x00\x07\x09\xc0\
\x00\x00\x07\xe2\x00\x00\x00\x00\x00\x01\x00\x07\x6b\x72\
\x00\x00\x07\xc0\x00\x01\x00\x00\x00\x01\x00\x07\x5e\x13\
\x00\x00\x07\x44\x00\x01\x00\x00\x00\x01\x00\x07\x2a\xcd\
\x00\x00\x07\x6c\x00\x00\x00\x00\x00\x01\x00\x07\x34\x7e\
\x00\x00\x05\x4a\x00\x01\x00\x00\x00\x01\x00\x06\x8e\xca\
\x00\x00\x05\xe4\x00\x01\x00\x00\x00\x01\x00\x06\xca\x2d\
\x00\x00\x03\x62\x00\x01\x00\x00\x00\x01\x00\x06\x04\xc4\
\x00\x00\x05\xbc\x00\x01\x00\x00\x00\x01\x00\x06\xba\x57\
\x00\x00\x04\x80\x00\x01\x00\x00\x00\x01\x00\x06\x52\xb7\
\x00\x00\x08\x08\x00\x01\x00\x00\x00\x01\x00\x07\x76\x1d\
\x00\x00\x06\xf6\x00\x00\x00\x00\x00\x01\x00\x07\x11\x11\
\x00\x00\x06\x64\x00\x01\x00\x00\x00\x01\x00\x06\xe6\x99\
\x00\x00\x07\x8e\x00\x00\x00\x00\x00\x01\x00\x07\x49\x0f\
\x00\x00\x07\x04\x00\x01\x00\x00\x00\x01\x00\x07\x11\x79\
\x00\x00\x08\x14\x00\x00\x00\x00\x00\x01\x00\x07\x73\x2b\
\x00\x00\x07\xf2\x00\x01\x00\x00\x00\x01\x00\x07\x65\xcc\
\x00\x00\x07\x76\x00\x01\x00\x00\x00\x01\x00\x07\x32\x86\
\x00\x00\x07\x9e\x00\x00\x00\x00\x00\x01\x00\x07\x3c\x37\
\x00\x00\x05\x7c\x00\x01\x00\x00\x00\x01\x00\x06\x96\x83\
\x00\x00\x06\x16\x00\x01\x00\x00\x00\x01\x00\x06\xd1\xe6\
\x00\x00\x03\x94\x00\x01\x00\x00\x00\x01\x00\x06\x0c\x7d\
\x00\x00\x05\xee\x00\x01\x00\x00\x00\x01\x00\x06\xc2\x10\
\x00\x00\x04\xb2\x00\x01\x00\x00\x00\x01\x00\x06\x5a\x70\
\x00\x00\x08\x3a\x00\x01\x00\x00\x00\x01\x00\x07\x7d\xd6\
\x00\x00\x07\x28\x00\x00\x00\x00\x00\x01\x00\x07\x18\xca\
\x00\x00\x06\x96\x00\x01\x00\x00\x00\x01\x00\x06\xee\x52\
\x00\x00\x07\xc0\x00\x00\x00\x00\x00\x01\x00\x07\x50\xc8\
\x00\x00\x02\x8e\x00\x01\x00\x00\x00\x01\x00\x05\xcc\x17\
\x00\x00\x02\xba\x00\x01\x00\x00\x00\x01\x00\x05\xd3\x9e\
"

View File

@ -191,7 +191,7 @@ class DraftWorkbench (Workbench):
self.modList = ["Draft_Move","Draft_Rotate","Draft_Offset",
"Draft_Trimex", "Draft_Upgrade", "Draft_Downgrade", "Draft_Scale",
"Draft_Drawing","Draft_Edit","Draft_WireToBSpline","Draft_AddPoint",
"Draft_DelPoint","Draft_Shape2DView"]
"Draft_DelPoint","Draft_Shape2DView","Draft_Draft2Sketch"]
self.treecmdList = ["Draft_ApplyStyle","Draft_ToggleDisplayMode","Draft_AddToGroup","Draft_SelectGroup"]
self.lineList = ["Draft_UndoLine","Draft_FinishLine","Draft_CloseLine"]
self.appendToolbar(str(draftTools.translate("draft","Draft tools")),self.cmdList+self.modList)

View File

@ -34,6 +34,7 @@
<file>icons/Draft_Draft.svg</file>
<file>icons/Draft_2DShapeView.svg</file>
<file>icons/Draft_Wipe.svg</file>
<file>icons/Draft_Draft2Sketch.svg</file>
<file>patterns/concrete.svg</file>
<file>patterns/cross.svg</file>
<file>patterns/line.svg</file>

View File

@ -0,0 +1,162 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64px"
height="64px"
id="svg5821"
sodipodi:version="0.32"
inkscape:version="0.48.1 r9760"
sodipodi:docname="Draft_Draft.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
version="1.1"
inkscape:export-filename="/media/data/Yorik/FreeCAD/icons/Sketcher.png"
inkscape:export-xdpi="45"
inkscape:export-ydpi="45">
<defs
id="defs5823">
<linearGradient
inkscape:collect="always"
id="linearGradient6349">
<stop
style="stop-color:#000000;stop-opacity:1;"
offset="0"
id="stop6351" />
<stop
style="stop-color:#000000;stop-opacity:0;"
offset="1"
id="stop6353" />
</linearGradient>
<linearGradient
id="linearGradient3377">
<stop
style="stop-color:#0019a3;stop-opacity:1;"
offset="0"
id="stop3379" />
<stop
style="stop-color:#0069ff;stop-opacity:1;"
offset="1"
id="stop3381" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3377"
id="linearGradient3383"
x1="901.1875"
y1="1190.875"
x2="1267.9062"
y2="1190.875"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-1,0,0,1,2199.356,0)" />
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 32 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="64 : 32 : 1"
inkscape:persp3d-origin="32 : 21.333333 : 1"
id="perspective5829" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient6349"
id="radialGradient6355"
cx="1103.6399"
cy="1424.4465"
fx="1103.6399"
fy="1424.4465"
r="194.40614"
gradientTransform="matrix(-1.4307499,-1.3605156e-7,-1.202713e-8,0.1264801,2674.7488,1244.2826)"
gradientUnits="userSpaceOnUse" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.34375"
inkscape:cx="791.43265"
inkscape:cy="-325.43181"
inkscape:current-layer="g3360"
showgrid="true"
inkscape:document-units="px"
inkscape:grid-bbox="true"
inkscape:window-width="1280"
inkscape:window-height="758"
inkscape:window-x="0"
inkscape:window-y="19"
inkscape:window-maximized="1" />
<metadata
id="metadata5826">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1"
inkscape:label="Layer 1"
inkscape:groupmode="layer">
<g
id="g3360"
inkscape:export-filename="/home/yorik/Documents/Lab/Draft/icons/draft.png"
inkscape:export-xdpi="3.2478156"
inkscape:export-ydpi="3.2478156"
transform="matrix(0.1367863,0,0,0.1367863,-119.15519,-134.86962)">
<rect
style="color:#000000;fill:none;stroke:#ff1100;stroke-width:27.72818756;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
id="rect3860-8"
width="183.5303"
height="159.80293"
x="1892.9396"
y="784.45233"
transform="matrix(0.89616322,0.44372456,-0.84895177,0.52847032,0,0)" />
<path
sodipodi:type="arc"
style="color:#000000;fill:none;stroke:#ff1100;stroke-width:5.6874156;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
id="path3862-6"
sodipodi:cx="30.181818"
sodipodi:cy="33.272728"
sodipodi:rx="18.181818"
sodipodi:ry="18.181818"
d="m 48.363636,33.272728 a 18.181818,18.181818 0 1 1 -36.363636,0 18.181818,18.181818 0 1 1 36.363636,0 z"
transform="matrix(4.2934274,2.1258395,-4.2119097,2.621903,1208.2191,1172.3488)" />
<rect
style="color:#000000;fill:none;stroke:#0000ff;stroke-width:27.95254517;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
id="rect3860"
width="184.75951"
height="161.31898"
x="1630.131"
y="500.28162"
transform="matrix(0.89020103,0.45556792,-0.84097347,0.54107635,0,0)" />
<path
sodipodi:type="arc"
style="color:#000000;fill:none;stroke:#0000ff;stroke-width:5.6874156;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
id="path3862"
sodipodi:cx="30.181818"
sodipodi:cy="33.272728"
sodipodi:rx="18.181818"
sodipodi:ry="18.181818"
d="m 48.363636,33.272728 a 18.181818,18.181818 0 1 1 -36.363636,0 18.181818,18.181818 0 1 1 36.363636,0 z"
transform="matrix(4.2934274,2.1971978,-4.2119097,2.7099128,1208.2191,928.41344)" />
<path
style="color:#000000;fill:#2e76ff;fill-opacity:1;fill-rule:evenodd;stroke:#000343;stroke-width:12.09651470000000018;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
d="m 1011.6804,1128.089 -80.75454,84.5297 47.97763,0 0,87.2711 62.70361,0 0,-87.2711 50.8277,0 -80.7544,-84.5297 z m 152.4834,0 0,87.2712 -50.8278,0 80.7543,84.5296 80.7546,-84.5296 -47.5027,0 0,-87.2712 -63.1784,0 z"
id="rect3783"
inkscape:connector-curvature="0" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

@ -4433,6 +4433,44 @@ class Shape2DView():
for ob in Draft.getSelection():
Draft.makeShape2DView(ob)
class Draft2Sketch():
"The Draft2Sketch FreeCAD command definition"
def GetResources(self):
return {'Pixmap' : 'Draft_Draft2Sketch',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Draft_Draft2Sketch", "Draft to Sketch"),
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Draft_Shape2DView", "Convert bidirectionally between Draft and Sketch objects")}
def IsActive(self):
if Draft.getSelection():
return True
else:
return False
def Activated(self):
for obj in Draft.getSelection():
nobj = None
name = obj.Name
if obj.isDerivedFrom("Sketcher::SketchObject"):
wires = []
for w in obj.Shape.Wires:
if fcgeo.hasCurves(w):
nobj = FreeCAD.ActiveDocument.addObject("Part::Feature",name)
nobj.Shape = w
else:
nobj = Draft.makeWire(w)
wires.append(nobj)
if len(wires) > 1:
nobj = Draft.makeBlock(wires)
elif obj.isDerivedFrom("Part::Part2DObjectPython"):
nobj = FreeCAD.ActiveDocument.addObject("Sketcher::SketchObject",name)
for edge in obj.Shape.Edges:
nobj.addGeometry(edge.Curve)
if nobj:
Draft.formatObject(nobj,obj)
FreeCAD.ActiveDocument.removeObject(name)
FreeCAD.ActiveDocument.recompute()
#---------------------------------------------------------------------------
# Adds the icons & commands to the FreeCAD command manager, and sets defaults
#---------------------------------------------------------------------------
@ -4462,6 +4500,7 @@ FreeCADGui.addCommand('Draft_Edit',Edit())
FreeCADGui.addCommand('Draft_AddPoint',AddPoint())
FreeCADGui.addCommand('Draft_DelPoint',DelPoint())
FreeCADGui.addCommand('Draft_WireToBSpline',WireToBSpline())
FreeCADGui.addCommand('Draft_Draft2Sketch',Draft2Sketch())
# context commands
FreeCADGui.addCommand('Draft_FinishLine',FinishLine())

View File

@ -118,7 +118,7 @@ def isPtOnEdge(pt,edge) :
def hasCurves(shape):
"checks if the given shape has curves"
for e in shape.Edges:
if not isInstance(e.Curve,Part.Line):
if not isinstance(e.Curve,Part.Line):
return True
return False