Hi Jeremy ,
yes I did , I still have that problem.
var createshareParam = new Share();
Definition tt = createshareParam.Main(doc,_filename, _groupname, _defname, _deftype, targets);
doc.Regenerate();
List<ElementId> ListElementId = new List<ElementId> { };
for(int i=0;i<solids.Count; i++)
{
List<GeometryObject> geo = new List<GeometryObject> { solids.ElementAt(i) as GeometryObject };
DirectShape ds = DirectShape.CreateElement(doc,new ElementId(BuiltInCategory.OST_GenericModel));
ds.GetOptions().ReferencingOption=DirectShapeReferencingOption.Referenceable ;
ds.ApplicationId = "aplication id";
ds.ApplicationDataId = "geometry object id";
ds.SetShape(geo);
ds.SetName("MyShape" + i.ToString());
bool ll= ds.get_Parameter(tt).SetValueString(linestylesB);
ElementId IdDirectShape = ds.Id;
ListElementId.Add(IdDirectShape);
}
doc.Regenerate();
foreach(ElementId elmentId in ListElementId)
{
Element directshape = doc.GetElement(elmentId);
bool rr= directshape.get_Parameter(tt as Definition).SetValueString(linestylesB);
}
doc.Regenerate();
trans.Commit();
return Result.Succeeded;