A while ago I started to use SyncToy and I'm very happy with it. It's free from Microsoft and available at here.
White paper for SyncToy.
Overview
Increasingly, computer users are using different folders, drives, and even different computers (such as a laptop and a desktop) to store and retrieve files. There are new sources of files coming from every direction: digital cameras, e-mail, cell phones, portable media players, camcorders, PDAs, and laptops. Yet managing hundreds or thousands of files is still largely a manual operation. In some cases it is necessary to move files from one place to another; in other cases there is a need to keep two storage locations exactly in sync. Some users manage files manually, dragging and dropping from one place to another and keeping a mental card catalog in their heads. Others use one or more applications of one sort or another to provide this functionality for them.
Now there is an easier way. SyncToy is a free PowerToy for Microsoft Windows XP that provides an easy to use, highly customizable program to help copy, move, and synchronize different directories. Most common operations can be performed with just a few clicks of the mouse, and additional customization is available without adding complexity. SyncToy can manage multiple sets of directories at the same time; it can combine files from two folders in one case, and mimic renames and deletes in another. Unlike other applications, SyncToy keeps track of renames to files and will make sure those changes get carried over to the synchronized folder.
AutoCAD, AutoCAD Architecture (ACA/ADT), Revit Architecture, Revit MEP, Revit Structure, BIM, CAD, AutoLISP, VBA, VB, VB.NET, C#, databases, Access, SQL Server, FlexNet (FLEXlm), license usage reporting, software design, development, customization, integration...
Friday, October 14, 2005
SyncToy to synchronize your files
Wednesday, October 12, 2005
Remove Sheet Set association on a sheet drawing
You might have used Sheet Set Manager (SSM) in AutoCAD 2005 (in AutoCAD 2006 and newer the association is normally automatically removed) and later on want to remove the association of sheets to the specific Sheet Set.
This can manually be done by deleting (or temporary move) the dst file for the sheet set, open the drawing(s) and when prompted for Lost Set Association select the Remove button.
If you have multiple sheets it's possible to script this.
You can use SmartPurger or some other tool to script multiple drawings and run this code to remove the association to the sheet set:
(dictremove (namedobjdict) "AcSheetSetData")
If you are using SmartPurger just save the row above into a text file using Notepad and name it for example disassociatessm.lsp and add it to the Settings>General>Script/lisp file. Then run SmartPurger and select the files you want.
For dictremove to work the sheet must first be deleted from the sheet set and the drawing must be saved after running the code.
VBscript to deploy AutoCAD 2006 SP1 or the like
on error resume next
Dim WshShell
Set WshShell = Wscript.CreateObject("Wscript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
Acad2006="HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R16.2\ACAD-4001:409\"
PN=""
PN = WshShell.RegRead(Acad2006 & "ProductName")
If fso.FolderExists("C:\Program Files\AutoCAD 2006") and PN="AutoCAD 2006" Then
Release=""
Release = WshShell.RegRead(Acad2006 & "Release")
If Release="16.2.54.10" Then
WshShell.Run """\\it.local\Acad2006\AutoCAD2006SP1.exe"" /q",1,true
End if
End if
Sunday, September 18, 2005
BazzaCAD CLog
Friday, September 16, 2005
Visual Basic 9.0 and more
Thursday, September 15, 2005
License Time-out Feature in AutoCAD
- Any keystroke.
- Any mouse click.
- Any command, Lisp expression, menu macro or script in progress.
- Any Modal dialog box opened (a dialog box which needs to close before continuing to other tasks).
- Note: Using the Help system does not keep the session active.
If you are a user of FLEXlm licenses you might also be interested in looking at JTB FlexReport to further help you optimize your network licenses.
Details from KB TS67304
License Time-out Feature
You would like to know how to use the network license time-out feature.
Overview
The Network License Manager can be configured to reclaim a license when a client workstation is idle for longer than a defined time-out period*, or the connection with the workstation is lost.
*This option is not applicable to AutoCAD 2002 based products.
Idle Period
Any of the following activity in the active application prevents the client workstation from being idle:
- Any keystroke.
- Any mouse click.
- Any command, Lisp expression, menu macro or script in progress.
- Any Modal dialog box opened (a dialog box which needs to close before continuing to other tasks).
Note: Using the Help system does not keep the session active.
Configuring License Time-out
License time-out is configured by implementing an options file with the Network License Manager. For a detailed explanation of options files, please refer to the FLEXlm End User Guide, located by default on the network license server in the following directory:
\Program Files\Autodesk Network License Manager\Docs\FlexUser
A brief explanation of options files is provided below:
- Options files are created with an ASCII text editor, such as Microsoft Notepad.
- Keyword statements are used in an options file to configure various operating parameters of the Network License Manager.
- The options file must be named adskflex.opt.
- The options file must be located in the same folder as the Autodesk product license file.
- All text in an options file is case sensitive.
- The options file is read each time the license manager is started or the license file is reread.
License time-out is configured in an options file by using the TIMEOUT keyword.
The syntax is: TIMEOUT [feature] [n], where:
- [feature] specifies the application you want to control. The feature code can be found in the license file, right after the word INCREMENT.
- [n] is the number of seconds before the license server reclaims an inactive license. The minimum value is 900.
Example: TIMEOUT 48800ACD_2006_0F 3600
This line in an options file would configure the Network License Manager to reclaim an AutoCAD 2006 license (feature code 48800ACD_2006_0F), if the client machine was idle for 3600 seconds (one hour).
License Time-out Behavior
If your license is lost because of the idle time-out, the product attempts to claim a new license once you access the product again. If a license is available, the client pulls a new license and continues the session. If no license is available, you will be prompted to save your work before the product shuts down.
Note: The debug log file can be examined to determine if a license has been reclaimed. When a license has been reclaimed, the debug log file will contain a line similar to:
11:43 (adskflex) IN feature user_name@host_name (INACTIVE)
Thursday, September 1, 2005
Print DWF files from Windows Explorer
I have made a simple freeware application that uses Autodesk DWF Viewer to do this and that can be used as a DDE Application. Select the DWF's you want to print, right click and select Print DWF. That's it. I hope it is useful for you.
You can download the setup file here.
The stability and functionality is as it is. It works good enough for me even though I cannot say that it will work for you. I have not added subclassing to the application. So if you select multiple DWF's, one instance of the program will be started for each DWF.
For the latest version see http://www.jtbworld.com/dwfprint.htm
Sunday, August 28, 2005
Find more in AutoCAD 2006
FIND in AutoCAD 2006 now permits the wildcards * and ?.
To find these characters add a reverse quote before. `*AB matches *AB.
All characters that need a reverse quote before are:
# (Pound) that Matches any numeric digit
@ (At) that Matches any alphabetic character
. (Period) that Matches any nonalphanumeric character
* (Asterisk) that Matches any string and can be used anywhere in the search string
? (Question mark) that Matches any single character; for example, ?BC matches ABC, 3BC, and so on
~ (Tilde) that Matches anything but the pattern; for example; ~*AB*matches all strings that don't contain AB
[ ] that Matches any one of the characters enclosed; for example, [AB]C matches AC and BC
[~] that Matches any character not enclosed; for example, [~AB]C matches XC but not AC
[-] that Specifies a range for a single character; for example, [A-G]C matches AC, BC, and so on to GC, but not HC
` (Reverse quote) that Reads the next character literally; for example, `~AB matches ~AB
Thursday, August 25, 2005
AutoCAD 2006 SP1
Friday, August 19, 2005
Installations and Virus Scan Applications
It loops several times and every minute it stops the service for the VirusScan. This continues long enough for the installation to take place.on error resume next Set WshShell = CreateObject("WScript.Shell") for i=1 to 20 WshShell.Run "net stop ""Network Associates McShield""",0,True WScript.sleep 60000 next
VBScript formula that uses the ADT API
After reading this blog post by Richard Binning, Beside the Cursor about ADT: VBScripting Resources List I recall a little VBScript for ADT that I've used in a Formula Property Definition in a Property Set Definition. I wanted to schedule the width of the wall that the door is anchored to. These few rows solves this by using the Handle of the door and using the ADT API to get the Width.
on error resume next
Set app=GetObject(,"AutoCAD.Application")
Set aDoor = app.activedocument.handletoobject("[Handle]")
Set anAnchor = aDoor.GetAnchor
Set aWall = anAnchor.Reference
RESULT= aWall.Width
Sunday, August 14, 2005
AutoCAD Wish List Ballot
AutoCAD Wish List Ballot Welcome to the August 2005 Wish List Ballot. We have included 50 or so of the best wishes since the April release of AutoCAD 2006. Now is your chance to rank your top five. The title of each wish is actually a link to the thread in the Wish List Forum. ... The results will be tabulated at the end of the month and the Top 10 will be presented to Autodesk in September. Don't miss your chance to help pick some of the new features for AutoCAD 2007!
Saturday, August 13, 2005
VBScript tips to refresh the desktop
If you are using VBS and is deleting some shortcuts after an installation and then adding your own shortcuts you have maybe problem with having the desktop refreshed just like it automatically is when manually deleting something on the desktop. If the desktop is not refreshed the new icon will be placed after the already deleted icon, not on the same place.
Here is a tips how to do it using VBScript:
' Refresh the desktop to remove the deleted shortcuts correctly
set oShell= createobject("shell.application")
set oDesktop = oShell.Namespace(0)
oDesktop.self.invokeVerb "R&efresh"
Friday, August 12, 2005
Some of the latest blog posts
Contact Us
| About JTB World |
Website General Terms of Use |
Privacy Policy
^ Top of page
© 2004- JTB World. All rights reserved.