


{"id":53786,"date":"2021-03-24T07:05:51","date_gmt":"2021-03-24T07:05:51","guid":{"rendered":"\/forum\/forums\/topic\/inserting-tabular-data-using-python-scriptcant-assign-to-read-only-property-inputs-of-type-field\/"},"modified":"2021-03-24T07:05:51","modified_gmt":"2021-03-24T07:05:51","slug":"inserting-tabular-data-using-python-scriptcant-assign-to-read-only-property-inputs-of-type-field","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/inserting-tabular-data-using-python-scriptcant-assign-to-read-only-property-inputs-of-type-field\/","title":{"rendered":"Inserting Tabular data using python script:Can&#8217;t assign to read-only property Inputs of type &#8216;Field&#8217;"},"content":{"rendered":"<p>I was trying to insert a tabular data for displacement as follows:nSlMn = ExtAPI.SelectionManagernSlMn.ClearSelection()nSel = SlMn.CreateSelectionInfo(SelectionTypeEnum.GeometryEntities)ndisp=DataModel.AnalysisList[0].AddDisplacement()nSel.Ids=[25] # ID 25 is an edgendisp.Location=Selndisp.XComponent.Output.DefinitionType=VariableDefinitionType.Discretendisp.YComponent.Output.DefinitionType=VariableDefinitionType.Discretendisp.ZComponent.Output.DefinitionType=VariableDefinitionType.Discretendisp.YComponent.Inputs=[Quantity(&#8216;0 [sec]&#8217;),Quantity(&#8216;0.1[sec]&#8217;),Quantity(&#8216;0.2 [sec]&#8217;),Quantity(&#8216;1[sec]&#8217;)]nI am getting this error:ncan&#8217;t assign to read-only property Inputs of type &#8216;Field&#8217;nnI was using the same syntax prescribed for forces in the ANSYS ACT developer guide. How can a tabular data be read-only if I can manually input values in the table?nIs there anything wrong with my code? Also, I have tried the tree children method (disp=Model.Analyses[0].Children[5]). This gives the same error.n<\/p>\n","protected":false},"template":"","class_list":["post-53786","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_old_topic_id":["26109"],"_bbp_old_topic_author_name_id":["Anonymous"],"_bbp_old_is_topic_anonymous_id":["false"],"_bbp_old_closed_status_id":["publish"],"_bbp_author_ip":["\u0005?\u001b?"],"_bbp_old_sticky_status_id":["normal"],"_bbp_likes_count":["0"],"_btv_view_count":["1209"],"_bbp_subscription":["252523"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["53786"],"_bbp_forum_id":["27791"],"_bbp_engagement":["58821","178394"],"_bbp_voice_count":["2"],"_bbp_reply_count":["3"],"_bbp_last_reply_id":["148039"],"_bbp_last_active_id":["148039"],"_bbp_last_active_time":["2021-03-25 07:35:14"]},"test":"prakhars962"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/53786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/53786\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=53786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}