designing/moving windows in a house

Started by bobl, June 18, 2014, 03:31:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bobl

Sam, prl
It probably is win7 'cos it works here fine on xp. Thanks for the illustrations re DC's capabilities... I couldn't open some of them with my (earlier) versions. I loaded my 3000 express and noticed that the authors favoured last point as the point relative default in it so....point relative has worked like that since 2002ish. It is indeed testament to DC's flexibility that you can still however have the DOS-like behaviour if you want it. Going to read up on autohotkeys 'cos although I've been using SPC '...that sounds even better!

prl

Quote from: samdavo on July 03, 2014, 01:23:10 PM
(But I still have problem changing custom.ini due to administrator rights - rats !  )   (WIN 7)

Sorry, I know nothing about Win 7.  Regarding Autohotkey, autohotkeys are program window specific and you can get them to not clash with internal program hotkeys but it is simpler if you pick a key that isn't used by DesignCAD internally or through other user customization (meaning use a key that doesn't clash). 

prl

#212
Dean, Sam

Attached is an autokey executable.  Also the source code *.ahk.  You will laugh when you see how little code it takes.  Double click the pr.exe.  If you have a virus detection routine, you'll have to allow it and trust me.  Autohotkey creates a hook at the global OS level.

You don't need to change anything in terms of your DesignCAD *.ini files.  I changed the code to use prel.  The pr.exe should work both on DesignCAD Pro 2000 and any version of DesignCAD 3D MAX version 15 to 24.

If you find it useful, I can recompile it without the silly intro message box. 

Oh yes, to fire the hotkey, DesignCAD must be the active program and hit the ` key (the one below the escape key on the left).

Also, you only need to run the pr.exe program once.  It stays in memory.  Remember the old TSRs (terminate and stay resident program)?

;Program:  pr.ank

MsgBox 0,, Jul 3 2014 - Hi Sam and Dean and all you forum people,2

;**********************************
; DesignCAD
;**********************************

;substitute space prel space
#IfWinActive DesignCAD 3D MAX
    `::
      SendInput, {SPACE}
      SendInput, prel{SPACE}
    Return
;**********************************

#IfWinActive DesignCAD Pro 2000
    `::
      SendInput, {SPACE}
      SendInput, prel{SPACE}
    Return
;**********************************

DrollTroll

Quote from: samdavo on July 03, 2014, 01:23:10 PM
(But I still have problem changing custom.ini due to administrator rights - rats !  )   (WIN 7)

What folder is your custom.ini file in? (and what version of DC were you editing it for?)

For Win7, the default folder for all the ini files should be your "My Documents/DesignCAD 3D Max NN", where "NN" is the version number.

Unless you manually chose to install it all to your Program Files folder -- don't do that (anymore)!
25 years with DesignCAD

bobl

Back later to try this out...Thank you for your trouble.

samdavo

#215
Quote from: DrollTroll on July 03, 2014, 03:21:24 PM
What folder is your custom.ini file in? (and what version of DC were you editing it for?)
For Win7, the default folder for all the ini files should be your "My Documents/DesignCAD 3D Max NN", where "NN" is the version number.

Unless you manually chose to install it all to your Program Files folder -- don't do that (anymore)!

DT - thanks. (but I now have a new problem )...
Yes on my home computer I have V22.1, and custom.ini is only accessible through Program Files. (C:\ProgramData\ IMSI\ ).
(others, V12 etc are on eg C:\2000dc, and easily accessible to change custom.ini etc.  Same thing at work)

ok, I thought I'd install V23 (finally) on my home computer (eg in C:\DCAD23).  (I've had it on my work computer for about 9 months)

Problem ...  it tells me it can't find 1311.Source file ??   I have already entered the Serial number, but it kicks me out of "install" when I can't tell it where that file is (?)
Any clues as to why would be appreciated.

prl

Quote from: samdavo on July 04, 2014, 03:30:57 AM
ok, I thought I'd install V23 (finally) on my home computer (eg in C:\DCAD23).  (I've had it on my work computer for about 9 months)

I've noticed that Phil recommends the " install for "me only" option.  Is that what you're doing too?

samdavo

#217
On another trivial matter, 
I added PL as an alias for Point-reL   (in V12 - easily accessible)
also PO for PointXYZ
and PP for Point Polar.

The first two worked, but PP was already allocated in custom.ini to Perpendicular Plane - which I changed to PerpP.
and then point polar worked as well ( no longer a clash).  All obvious enough.
(2 cents)

Quote from: prl on July 04, 2014, 03:46:32 AM
I've noticed that Phil recommends the " install for "me only" option.  Is that what you're doing too?
prl
yep, that's what I ticked (second time).  But didn't work either way.
I reasoned that a licence can be placed on two computers provided one person uses it on one or other.   Hence "me only" would make sense, and might "make it work".
Anyway it didn't.  :)
cheers

prl

#218
Sam,

Regarding the installation, sounds like a security access thing.   Try

1.  Put install program on desktop or create a new folder on your C drive to which you have full access rights.

2.  Disable antivirus program during install

or maybe clean out the failed installs, clean registry, etc.

bobl

prl
I could've done this this morning but was looking around for pr.exe and couldn't find it on my system.
Now that I'm back and have read your post in full...I see it's in the zip...Doh!
I can confirm that pr.exe works like a dream on DC2000 pro and 17.2 pro.
Thank you very much for making this possible.

prl

Quote from: bobl on July 04, 2014, 05:57:30 AM
I can confirm that pr.exe works like a dream on DC2000 pro and 17.2 pro.
Thank you very much for making this possible.

If you need any tips for changing the trigger key, the compiler etc. let me know.  It's all there in the open source AutoHotKey download but I may be able to save you some time.

bobl

>If you need any tips...
>may be able to save you some time
Telepathy...I'd just come back to ask about this code 'cos it's unfamiliar to me.
Please assume complete ignorance...'cos that's what you're dealing with.

>tips for changing the trigger key, the compiler etc
YES PLEASE


prl

#222
Pretty easy.  To change the trigger to say Windows Logo Key+Spacebar, edit the *.ahk file in the zip to

;File:  pr.ank

MsgBox 0,, Jul 3 2014 - Hi Sam and Dean and all you forum people,2

;**********************************
; DesignCAD
;**********************************

;substitute space prel space
#IfWinActive DesignCAD 3D MAX
   #space::
      SendInput, {SPACE}
      SendInput, prel{SPACE}
    Return
;**********************************

#IfWinActive DesignCAD Pro 2000
    #space::
      SendInput, {SPACE}
      SendInput, prel{SPACE}
    Return
;**********************************

After you save the changes, use the Ahk2Exe.exe compiler.  That's it.

Additional information:
A quick page discussing key assignments: http://www.autohotkey.com/docs/Hotkeys.htm
To download the program: https://github.com/AutoHotkey/AutoHotkey/releases/download/v1.0.48.05/AutoHotkey104805_Install.exe


bobl

This looks very useful...Thanks for pointing it out and for the tutorial.
Much appreciated!

bobl

` is working great so...back to it.
Yesterday I realised I'd missed the garage off the front elevation.
I need to move the side elevation with all it's lines in various layers to the right
to make room but am not sure of the recipe to grab a load of stuff and move using gravity snap
from one point to another to do it with precision.
From my experience of DC I don't doubt this can be done but am not sure how.
Any advice much appreciated.