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

0 Members and 1 Guest are viewing this topic.

Offline julianhigginson

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: au
Altium auto-modifying a project on opening
« on: August 20, 2017, 04:43:00 PM »
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, 05:00:18 PM by julianhigginson »
 

Offline NANDBlog

  • Super Contributor
  • ***
  • Posts: 3527
  • Country: be
Re: Altium auto-modifying a project on opening
« Reply #1 on: August 20, 2017, 06:23:01 PM »
I think it modifies it, if the project file comes from an earlier version of AD.
 

Offline julianhigginson

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: au
Re: Altium auto-modifying a project on opening
« Reply #2 on: August 20, 2017, 10: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 21, 2017, 07:50:04 AM by julianhigginson »
 

Offline dfnr2

  • Regular Contributor
  • *
  • Posts: 222
  • Country: us
Re: Altium auto-modifying a project on opening
« Reply #3 on: August 22, 2017, 10: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, 10:20:59 AM by dfnr2 »
 

Offline julianhigginson

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: au
Re: Altium auto-modifying a project on opening
« Reply #4 on: August 22, 2017, 12:29:20 PM »
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: 1916
  • Country: au
Re: Altium auto-modifying a project on opening
« Reply #5 on: August 22, 2017, 12:34:30 PM »
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 julianhigginson

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: au
Re: Altium auto-modifying a project on opening
« Reply #6 on: August 23, 2017, 02:19:23 PM »
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: 1916
  • Country: au
Re: Altium auto-modifying a project on opening
« Reply #7 on: August 23, 2017, 04:13:30 PM »
I'm curious, are you using the "Project Packager" or simply zipping the projects folder contents?
 

Offline blueskull

  • Supporter
  • ****
  • Posts: 7653
  • Country: cn
  • Power Electronics PhD Candidate
Re: Altium auto-modifying a project on opening
« Reply #8 on: August 23, 2017, 04:18:12 PM »
This is a known behavior. Altium sometimes will update project file if some of its documents change. This makes no impact to your workflow, AFAIK, but I have this issue sometimes, even only across my computers.
SIGSEGV is inevitable if you try to talk more than you know. If I say gibberish, keep in mind that my license plate is SIGSEGV.
 

Offline julianhigginson

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: au
Re: Altium auto-modifying a project on opening
« Reply #9 on: August 23, 2017, 08:51:36 PM »
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