umvarma / pynastran

Automatically exported from code.google.com/p/pynastran
1 stars 0 forks source link

Pid exception #103

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi
  I have modified the function Pid 
in BaseCard file
for a special case that
I am studying
Here my code 

    def Pid(self):
        """returns the property ID of an element"""
        if self.pid == None:
            print ("No property defined for element ",self.eid ) 
            return
        if isinstance(self.pid, int):
            return self.pid
        else:
            return self.pid.pid
        ###

Original issue reported on code.google.com by fabio.sc...@gmail.com on 14 Aug 2012 at 5:43

GoogleCodeExporter commented 9 years ago
Thanks!  Adding that is a good idea

If you can attach your BDF (or a simplified version of it) I can try and help 
fix the problem.  If you run:

test_bdf -x model.bdf

You should be able to see if any properties are skipped.  Beyond that the code 
somewhat assumes you have a valid BDF.

Original comment by mesheb82 on 14 Aug 2012 at 5:59

GoogleCodeExporter commented 9 years ago

Original comment by mesheb82 on 14 Aug 2012 at 6:41

GoogleCodeExporter commented 9 years ago

Original comment by mesheb82 on 10 Apr 2013 at 7:38