Setting the CompoundStructure.EndCap is not working - revit-api

I am working on a Revit plugin using RevitAPI.
I create a new WallType by duplicating existing one. Then I edit the structure - adding new layers.
Also, I am setting the OpeningWrapping to Both and I want to set the EndCap to Interior.
Unfortunately, the EndCap never changes and stays Exterior
structure.EndCap = EndCapCondition.Interior;
structure.OpeningWrapping = OpeningWrappingCondition.ExteriorAndInterior;
Does someone have any ideas about why it is not changing?
Thank you in advance!
Ivan

There could be many possible reasons.
Can you set the desired end cap behaviour manually through the user interface?
If not, it will normally not be possible to do so programmatically either.
Do you have an open transaction?
Can you commit other changes in it?
Are you applying other changes to the model that might conflict with the end cap condition?
Instead of asking you hundreds of questions, I suggest that you provide a minimal reproducible case:
http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b
p.s. the same question is also asked and further discussed here:
https://forums.autodesk.com/t5/revit-api-forum/compoundstructure-endcap-is-not-working/m-p/6898895

Related

IW31 searching for a user exit or enh. point to get gsber

I am working with transaction IW31, the task is to rewrite the field of gsber with another value during the save process (when I clicked the save button this function should be activated at this time).
I had seen all the relevant user exit and enhancement point corresponding to transaction iw31 but no success. I couldn't find any point where I can get the whole CAUFVD structure (it contains the field gsber).
I would need a user point where I can import this structure, not only export.
Could anybody help me solving this task? Or do I need to create an implicit point because the lack of User-Exit?
Thank you in advance,
Gabor
Which SAP Release do you use?
Have you checked the Include LCOIHF2V? There you will find the Enhancement Point FCODE_BU2_01 in which you have full access to structure CAUFVD.
ENHANCEMENT-POINT FCODE_BU2_01 SPOTS ES_SAPLCOIH STATIC.
In addition you have of course always the possibility to add an implicit enhancement (as you suggested) at the end of this form routine.
Hope this helps!

Documents that appear in more than one category are pasted multiple times when using Copy Selected As Table

I have to fix the problem in the title and after one day of research I realy don't know what else to try, what else to google ;)
The topic is discussed in an IBM TechNote.
But this answer isn't enough for me. I really need a workaround!
My question: Can I 'get between' the User clicking the 'Copy as table' and the actual copying of the table?
I see two ways of solving my problem (I don't know how to implement them):
If I just could show the user a Messagebox 'Use our own export agent' that would be great.
If I could convince Notes to just copy each document only once that would be even greater.
If I should make my question more precise, just ask. I will gladly edit it!
Every answer would be highly appreciated. Out of the box thinking, other approaches, I like to hear your opinion!
Friendly Greetings
Josi
Unfortunately there is no way to hook in and alter the results of the Copy Selected as Table method. If it is possible to show an "Export Friendly" view that is not categorized, that is one way to solve the problem.
I'm not sure how useful it will be to you, but many years ago I wrote a sample project for exporting views to Excel, and that should handle categorized views properly. There are surely other options available by now too (though I'm not familiar with them).

Plugin not creating new record, but giving SQL timeout [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
I've created a plugin to create new records when a field changes on another record. I've set it all up but when I run it no records are created and CRM returns a SQL Timeout error. My code is below:
Entity contactSecurityRole = new Entity("sb_contactsecurityrole");
contactSecurityRole["sb_contactid"] = linkedContact;
contactSecurityRole["sb_contactportalsettingid"] = linkedContactPortalSetting;
contactSecurityRole["sb_portalsettingid"] = linkedPortalSetting;
contactSecurityRole["sb_portalsecurityroleid"] = linkedSecurityRole;
Service.Create(contactSecurityRole);
All the variables with a name starting "linked" are entity references to other entities, as the record is made up of lookup fields. I've done some checking and where it stops is where it comes to the actual Service.Create() part.
Can someone give me some tips on what to check so I can find why this is happening?
Update:
I've found the issue, and Greg was right it was a problem outside of the code I posted above. The issue was how I was setting up one of my "linked" variables, I was attempting to use a fetch request to retrieve a Guid for the record i needed to link to, from which I was setting up an entityreference.
The mistake I made was thinking that the fetch returned a Guid whereas it was actually returning an entityreference itself. So once I got that fixed the code ran through almost immediately. My guess was that because I was setting it up wrong, when it came to creating the entity CRM/SQL Server could enter the value so it returned the error.
Thanks for everybody's help with this
This will provide you some more clarity and the solution
I had this problem when I registerd the plugins in Sandbox in one of my CRM instances, which you should be doing, as its good practice. BUT try registering your plugins in non-Sandbox mode and than try creating a record, it might solve your issue.
It makes sense that any exception would be on the Service.Create(... part since this is the point at which the code tries to access CRM (and therefore the underlying SQL table).
Is it possible that you have other plug-ins registered which may be triggered during this process? Are you running on-premise or on-line?
I've found the issue, and Greg was right it was a problem outside of the code I posted above. The issue was how I was setting up one of my "linked" variables, I was attempting to use a fetch request to retrieve a Guid for the record i needed to link to, from which I was setting up an entityreference.
The mistake I made was thinking that the fetch returned a Guid whereas it was actually returning an entityreference itself. So once I got that fixed the code ran through almost immediately. My guess was that because I was setting it up wrong, when it came to creating the entity CRM/SQL Server could enter the value so it returned the error.
Thanks for everybody's help with this

Saving to multiple lists from 1 sharepoint 2007 list form

I have a request form I'm working on, wherein different departemnts need to be able to update it. To minimize overlap and lost changes I'd like to be able to submit data from the new form to different lists, but I cannot find a way to do this.
Does anyone have any experience trying to do anything similar?
If you're familiar with JQuery andSPServices I could envisage a way to do this.
In the EditForm.aspx, add the JQuery and SPServices libraries. using the $.(document).Ready function, I'd do a quick item update with the SPServices and just copy a column with the same data, so in effect no change looks to have taken place. I'd add in the edit comments something like "Pseduo checkout to [name], [date_time]".
Then allow the user to edit the form as normal but in the code you've added, you trap the PreSave Action and check that the person trying to do the save is the same as the last modified - if it is, save as normal, otherwise, return false on the PreSave and it will be denied. When you actually allow the save, set the edit comments to something sensible.
To complete this, check before doing the pseudo checkout, that the last comments don't contain the psuedo checkout phrase so that you can prevent anyone opening/editing the form whilst somebody else is in the middle of an edit.
This gives a cheap and relatievly easy to implement Check-In/Check-Out for a list. Not perfect of course but should work well in most scenarios (not in datasheet though, so you might need to prevent that type of edit).
If you have two lists would you not then have the problem of potentially two requests for the same thing?
Does none of the version control options for the list solve the problem of potentially multiple concurrent editors?
While SPService is certainly a solution, but you will have to build a UI of ur own.
Try writing a event receiver, which can copy over item to another list as soon as it is created.
It will be nice if you can tell why you really want to have a copy of item in another list
i.e. Auditing purpose etc. , you can get a perfect solution for this in Forum

where do I access the comment field for a core data model to add the "xmod" for mogenerator?

where do I access the comment field for a core data model to add the "xmod" for mogenerator?
hopefully not too dumb a question - but I just can't see where in my existing Xcode 4 model (*.xcdatamodel) to put the "xmod" to get mogenerator working
(reference https://github.com/rentzsch/mogenerator )
Xmo'd currently doesn't work with Xcode4. It is a .pbplugin and Apple removed support for them in Xcode4. There was a couple guys working on a new way of doing it, but I haven't seen any updates in awhile on it.
You can still use the AppleScript and command line though. You just have to manually trigger it and add the files. You lose the automation that Xmo'd gave you. Also, Xmo'd still works in Xcode3. So you can switch over to it when doing your modeling if you really wanted to.

Resources