IProperty problem

IProperty problem

marin_israel
Enthusiast Enthusiast
595 Views
9 Replies
Message 1 of 10

IProperty problem

marin_israel
Enthusiast
Enthusiast

Hi all,

I wonder that you can help me!!

 

I have an object to create and modify some custom Iproperty of .ipt and .iam...

 

1- It's weird but sometime all my custom Iproperty disapear at the same time... I don't understand how my object can do that.

 

2- And to add to weird :P, some value of Iproperty is create as Ilogic event...  but this Ilogic doesn't exist (it's normal) . How my value that I want to put as value of an Iprop can be attach to an event for an Ilogic...

 

It's to much for me... can you help me!!!

 

Israel Marin

Shebrooke,Qc

-------------------------------------
Israël Marin
Programmeur | Programmer
Logiflex
0 Likes
596 Views
9 Replies
Replies (9)
Message 2 of 10

jletcher
Advisor
Advisor

Ok I am lost big time do you have a road map?  Smiley Happy

 

You say:

 

And to add to weird Smiley Tongue, some value of Iproperty is create as Ilogic event...  but this Ilogic doesn't exist (it's normal)

 

Then how do you know it is done with ilogic?

 

You Say:

 

It's weird but sometime all my custom Iproperty disapear at the same time... I don't understand how my object can do that.

 

Did you make the parts and assemblies  or did someone else?

 

Smiley Happy

 

0 Likes
Message 3 of 10

marin_israel
Enthusiast
Enthusiast

Then how do you know it is done with ilogic?

It's not done by Ilogic... it's my object in Vb.net. But in result, the value I want to put in my Iproperty is find as a rule name associate to an event of Ilogic. It's not all the time, rarely, but it's a sign my code is not perfect.

 

Did you make the parts and assemblies  or did someone else?

The parts and assembly is create by my team and the IProperty is already in the part/assembly template. A few of Iproperty is create if if it's not already created.

 

Thanks to help me, I really want to fix this issue!

and sorry for my english...

 

Israel Marin

Shebrooke, Qc

 

-------------------------------------
Israël Marin
Programmeur | Programmer
Logiflex
0 Likes
Message 4 of 10

jletcher
Advisor
Advisor

To be honest without the code it will be hard to help.

0 Likes
Message 5 of 10

marin_israel
Enthusiast
Enthusiast

It's my object to manipulate custom Iproperty in my project. All my operation on Iproperty is done by this object...

 

If you have question, ask me!

Thanks to check my code!!

 

 

 

-------------------------------------
Israël Marin
Programmeur | Programmer
Logiflex
0 Likes
Message 6 of 10

jletcher
Advisor
Advisor

Ok have it let me take a look I will get back with you...

0 Likes
Message 7 of 10

xiaodong_liang
Autodesk Support
Autodesk Support

Hi,

 

I am afraid the code snippet is still not helpful to address the issue.  

 

  1. Can we run your code with blank document, or the problem occurred with specific document?
  2. You mentioned that “sometime all my custom Iproperty disappear at the same time”. Could you clarify in which scenario, the problem can occur? which properties will disappear?
  3. It is best to know the workflow (steps).
0 Likes
Message 8 of 10

marin_israel
Enthusiast
Enthusiast

Hi Thanks to guide me with this issue...

 

My project is a system to build office furniture, the environment is control by my addin. It have a dozen of person who use it at the same time. All my parts and assembly are on a server and re-use again and again.

 

The problem is too sporadic to test at short term, I can be 2 months without problem but I can have 10 cases in one week. It's not a specific document but mostly the assembly. I can't say when it happen mostly, it seem to me hazardous but it can be an error in my workflow. All of my transaction are do with my object posted on this topic, and sometime with Ilogic but more rarely.

 

What is the workflow to change an Iproperty, and what are the limitation(number of transaction, number of Iproperty for a same part/assembly)

 

Thanks to take the time to help me!

 

Israel Marin

Sherbrooke,Qc

 

-------------------------------------
Israël Marin
Programmeur | Programmer
Logiflex
0 Likes
Message 9 of 10

xiaodong_liang
Autodesk Support
Autodesk Support

Hi,

 

Sorry, it is still hard to diagnose. The workflow to change iProperties is not unique. As you did, get the PropertySet, get the property and update its value. There is not a limitation with the number of Iproperty . A reproducible (at least relative ) case is important for investigation. I would suggest you try to isolate as what I suggested. Sometimes, the isolating would give some clues with the problems.

0 Likes
Message 10 of 10

marin_israel
Enthusiast
Enthusiast

Hi,

I understand that... it's hard for you to diagnose a problem like that.

But one of my user make me realize something...

It seem happen more often when the occurence is delete and undo delete.

 

 

I will check if I can reproduct the situation... it's my better hint. Smiley Happy

 

Thanks a lot!!

 

Israel Marin

Sherbrooke, Qc

-------------------------------------
Israël Marin
Programmeur | Programmer
Logiflex
0 Likes