Community
PowerMill Forum
Welcome to Autodesk’s PowerMill Forums. Share your knowledge, ask questions, and explore popular PowerMill topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MODEL COMPARISON IN POWERMILL

3 REPLIES 3
Reply
Message 1 of 4
gangumadhusudana_rao
598 Views, 3 Replies

MODEL COMPARISON IN POWERMILL

CAN WE COMPARE OLD MODEL & NEW UPDATED MODEL IN POWERMILL TO FIND OUT EXACT MODIFICATION AREA ?

3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: gangumadhusudana_rao

Simple macro for model comparison, requires blank project. Based on a command 'Select duplicate components'. That is, it finds the identical surfaces.

 

IF project_pathname(0) != '' {
  MESSAGE INFO ' Please save /close project'
  RETURN
}
PROJECT RESET NO
STRING Old = ''
STRING New = ''
$Old = FILESELECT 'Please select old model'
$New = FILESELECT 'Please select new model'
STRING cmd='IMPORT MODEL FILEOPEN "'+$Old+'"'
DoCommand $cmd
$cmd='IMPORT MODEL FILEOPEN "'+$New+'"'
DoCommand $cmd
STRING LIST Models=extract(folder('Model'),'Name')
CREATE LEVEL 'old' LEVEL
CREATE LEVEL 'new' LEVEL
CREATE LEVEL 'old_diff' LEVEL
CREATE LEVEL 'new_diff' LEVEL
EDIT MODEL $Models[0] SELECT ALL
EDIT LEVEL "old_diff" ACQUIRE SELECTED
EDIT MODEL $Models[0] DESELECT ALL
EDIT MODEL $Models[1] SELECT ALL
EDIT LEVEL "new_diff" ACQUIRE SELECTED
EDIT MODEL $Models[1] DESELECT ALL
DIALOGS MESSAGE OFF
EDIT MODEL ALL DUPLICATE_SURFACES SELECT
EDIT LEVEL "old" ACQUIRE SELECTED
EDIT MODEL $Models[0] DESELECT ALL
DELETE MODEL $Models[0]
EDIT RECYCLER RECOVER Model ALL
EDIT MODEL ALL DUPLICATE_SURFACES SELECT
EDIT LEVEL "new" ACQUIRE SELECTED
EDIT MODEL $Models[1] DESELECT ALL
ORDERSESSION Model $Models[0] FIRST
DELETE LEVEL EMPTY





 

Message 3 of 4
gosmann.andreas
in reply to: Anonymous

isnt it automaticly checking whats diffrent when you go to the model and reimport it with the new one?

Message 4 of 4
Anonymous
in reply to: gosmann.andreas

It doesn't work for me (PM 2017 /2020 Standard)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report