Author Topic: Altium auto-modifying a project on opening  (Read 2666 times)

0 Members and 1 Guest are viewing this topic.

Offline julianhigginsonTopic starter

  • Frequent Contributor
  • **
  • Posts: 783
  • Country: au
Altium auto-modifying a project on opening
« on: August 20, 2017, 06:43:00 am »
So, I am working with another (remote, but same city) engineer on a large-ish 6 board project, and we have been handing AD projects back and forth at different times.

I've just noticed that I have 3 AD projects that he last worked on, and for 2 of the projects, when I open them to look at, Altium automatically makes a change to the project file, and the file turns red to indicate it's changed and needs saving.

But the third project doesn't. Which really weirds me out. They are all from the same guy over a couple of days, so having them behave differently is even worse than all behaving the same way I don't like.

I'm sure I've seen projects being modified on open every now and then over the years, and scratched my head and kept on working... but now I'd like to try and understand what and why and how to stop it.

Ideally I don't want AD auto touching project files when I'm just design reviewing. I can always "git reset --hard HEAD" if I accidentally save when prompted during close, but it shouldn't be happening in the first place, so...

Has anyone else seen this kind of behaviour before and know what it might be? bonus points for a configuration fix so it doesn't happen any more! :-)
« Last Edit: August 20, 2017, 07:00:18 am by julianhigginson »
 

Offline tszaboo

  • Super Contributor
  • ***
  • Posts: 7369
  • Country: nl
  • Current job: ATEX product design
Re: Altium auto-modifying a project on opening
« Reply #1 on: August 20, 2017, 08:23:01 am »
I think it modifies it, if the project file comes from an earlier version of AD.
 

Offline julianhigginsonTopic starter

  • Frequent Contributor
  • **
  • Posts: 783
  • Country: au
Re: Altium auto-modifying a project on opening
« Reply #2 on: August 20, 2017, 12:39:26 pm »
That's what I suspected till now when a project would turn red in opening, but if that's the case (and the only way it can happen) it would be weird, as it's all from the same guy, and I'd expect, the same altium install on the same PC...

I guess he could have updated his AD to latest in the middle of doing things... So the newest project is the same as mine but earlier ones weren't?
« Last Edit: August 20, 2017, 09:50:04 pm by julianhigginson »
 

Offline dfnr2

  • Regular Contributor
  • *
  • Posts: 240
  • Country: us
Re: Altium auto-modifying a project on opening
« Reply #3 on: August 22, 2017, 12:18:03 am »
It could be as simple as using different paths for working directories.

I alternate between my desktop (Mac Pro) and laptop (Macbook Pro), using version control to sync the working directories.  Altium runs under Parallels, but I keep all the files in my mac home directory--I don't keep any data in the Parallels disk.  The drive/directory aliases are slightly different on the two machines, and the project gets modified to reflect the location of the constituent files on the current machine--as if it has moved.  If I open a file on the laptop to view, then try to close, I'll get a prompt to save.  If I say "yes", then I'll get a prompt to save when I move back to the desktop.
« Last Edit: August 22, 2017, 12:20:59 am by dfnr2 »
 

Offline julianhigginsonTopic starter

  • Frequent Contributor
  • **
  • Posts: 783
  • Country: au
Re: Altium auto-modifying a project on opening
« Reply #4 on: August 22, 2017, 02:29:20 am »
Hmmm. But something fundamental like this will effect all 3 projects, surely?

And the projects need to be the same relative distance away from our shared excel file "parts db" and library folders... Otherwise the db links and library objects they reference will break..
 

Offline AlfBaz

  • Super Contributor
  • ***
  • Posts: 2184
  • Country: au
Re: Altium auto-modifying a project on opening
« Reply #5 on: August 22, 2017, 02:34:30 am »
Here's something worth  trying.
Open it, at this point it changes the project. then save it and compare the text contents of the *.PrjPCB file to the original  to see what's changed. The *.PrjPCB file is a text file
 

Offline julianhigginsonTopic starter

  • Frequent Contributor
  • **
  • Posts: 783
  • Country: au
Re: Altium auto-modifying a project on opening
« Reply #6 on: August 23, 2017, 04:19:23 am »
Good idea! I honestly thought there might be a standard thing someone more knowledgeable than me fully understands, and they would write up a proper consistent explanation of why AD would decide to modify its project file on opening... I guess not.

So I had a look... and for my particular instance of this issue today:

1) it seems like it is silently deleting a reference to an output file.
item [GeneratedDocument1] gets deleted, which is  a DRC output in html format -  no dialog warning.

2) Also, it's adding what looks to be outjob setting setting options related to the extensions I have installed (even though the settings are empty - I don't actually use SIMetrix/SIMPLIS)  so it's  adding entries under  [OutputGroup1], and [OutputGroup2] items

So if you are working on an AD project with someone else, there's a reason to keep your configuration of the program exactly the same as theirs - to remove lots of unnecessary file changes in the project file every time to both save and commit....
 

Offline AlfBaz

  • Super Contributor
  • ***
  • Posts: 2184
  • Country: au
Re: Altium auto-modifying a project on opening
« Reply #7 on: August 23, 2017, 06:13:30 am »
I'm curious, are you using the "Project Packager" or simply zipping the projects folder contents?
 

Offline julianhigginsonTopic starter

  • Frequent Contributor
  • **
  • Posts: 783
  • Country: au
Re: Altium auto-modifying a project on opening
« Reply #8 on: August 23, 2017, 10:51:36 am »
We're using GIT repos for each AD project.  (which is why I can always git reset --hard HEAD to fix auto changes that were accidentally saved)

But because CM systems lets you track and watch file state changes, I'd prefer not to have the project file change state unless one of us has actually made project settings changes, and was wondering if there was some obscure project setting or program config I wasn't aware of, that might disable random project file changes.

Otherwise we're pingponging irrelevant project settings back and forth and creating what amounts to noise in the file change log. Yeah I can ignore it (like I have for ages) but this time I was wondering if I even had to ignore it. Guess so.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf